Update tracktokens-smartcontracts.py
This commit is contained in:
parent
0de0fdfd9a
commit
7d162cd4ed
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user