Skip to content

Commit

Permalink
#21 Fix IPC connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hleb-albau committed Oct 16, 2018
1 parent 3d42ace commit 03fce2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion research/ethereum/common/ethereum_chain_to_adjacency_list.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys

from web3.auto import w3
from web3 import IPCProvider, Web3

"""
Collects ethereum transactions as adjacency list.
Expand All @@ -21,6 +21,7 @@
2) Run Script with two params: start block and end blocknumbers ex:
python ethereum_chain_to_adjacency_list.py 6235000 6235009
"""
w3 = Web3(IPCProvider(timeout=180))

first_block_to_download = int(sys.argv[1])
last_block_to_download = int(sys.argv[2])
Expand Down

0 comments on commit 03fce2f

Please sign in to comment.