Skip to content

Commit

Permalink
#21 Update web3
Browse files Browse the repository at this point in the history
Signed-off-by: Hleb Albau <hleb.albau@gmail.com>
  • Loading branch information
hleb-albau committed Oct 18, 2018
1 parent 03fce2f commit 9834fa3
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 65 deletions.
126 changes: 64 additions & 62 deletions research/ethereum/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions 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 import IPCProvider, Web3
from web3 import HTTPProvider, Web3

"""
Collects ethereum transactions as adjacency list.
Expand All @@ -21,7 +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))
w3 = Web3(HTTPProvider(endpoint_uri='http://localhost:34545'))

first_block_to_download = int(sys.argv[1])
last_block_to_download = int(sys.argv[2])
Expand All @@ -37,7 +37,6 @@
for block_number in range(first_block_to_download, last_block_to_download + 1):

print("Downloading {} block".format(block_number))
block = w3.eth.getBlock(block_number, True)
traces = w3.parity.traceBlock(block_number)

"Looking only for succeed call traces"
Expand Down

0 comments on commit 9834fa3

Please sign in to comment.