Update tracktokens-smartcontracts.py

This commit is contained in:
tripathyr 2022-01-03 12:58:39 +05:30 committed by GitHub
parent 0de0fdfd9a
commit 7d162cd4ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2681,7 +2681,7 @@ def scanBlockchain():
# At this point the script has updated to the latest block # At this point the script has updated to the latest block
# Now we connect to flosight's websocket API to get information about the latest blocks # Now we connect to flosight's websocket API to get information about the latest blocks
# MAIN EXECUTION STARTS
# Configuration of required variables # Configuration of required variables
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
@ -2795,7 +2795,7 @@ def reconnectWebsocket(socket_variable):
i=i+1 i=i+1
# MAIN LOGIC # MAIN LOGIC STARTS
# scan from the latest block saved locally to latest network block # scan from the latest block saved locally to latest network block
scanBlockchain() scanBlockchain()
@ -2837,4 +2837,4 @@ def connect_error():
def on_block(data): def on_block(data):
logger.info('New block received') logger.info('New block received')
logger.info(str(data)) logger.info(str(data))
processApiBlock(data) processApiBlock(data)