We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b6244d + 3856a75 commit 612751bCopy full SHA for 612751b
ethsync.py
@@ -145,7 +145,7 @@ def insertTxsFromBlock(block):
145
logger.info('Current best block in index: ' + str(maxblockindb) + '; in Ethereum chain: ' + str(endblock))
146
147
for blockHeight in range(maxblockindb + 1, endblock):
148
- block = web3.eth.getBlock(blockHeight, True)
+ block = web3.eth.get_block(blockHeight, True)
149
if len(block.transactions) > 0:
150
insertTxsFromBlock(block)
151
logger.info('Block ' + str(blockHeight) + ' with ' + str(len(block.transactions)) + ' transactions is processed')
0 commit comments