Skip to content

Commit 612751b

Browse files
authored
Merge pull request #18 from Adamant-im/fix/getBlock
fix: getBlock -> get_block
2 parents 9b6244d + 3856a75 commit 612751b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def insertTxsFromBlock(block):
145145
logger.info('Current best block in index: ' + str(maxblockindb) + '; in Ethereum chain: ' + str(endblock))
146146

147147
for blockHeight in range(maxblockindb + 1, endblock):
148-
block = web3.eth.getBlock(blockHeight, True)
148+
block = web3.eth.get_block(blockHeight, True)
149149
if len(block.transactions) > 0:
150150
insertTxsFromBlock(block)
151151
logger.info('Block ' + str(blockHeight) + ' with ' + str(len(block.transactions)) + ' transactions is processed')

0 commit comments

Comments
 (0)