diff --git a/tracktokens_smartcontracts.py b/tracktokens_smartcontracts.py index f33aebf..39ee1ff 100755 --- a/tracktokens_smartcontracts.py +++ b/tracktokens_smartcontracts.py @@ -728,7 +728,7 @@ def processTransaction(transaction_data, parsed_data, blockinfo): elif parsed_data['transferType'] == 'smartContract': if check_database_existence('smart_contract', {'contract_name':f"{parsed_data['contractName']}", 'contract_address':f"{outputlist[0]}"}): # Check if the transaction hash already exists in the contract db (Safety check) - connection = create_database_connection('smart_contract', {'contract_name':f"{parsed_data['contractName']}", 'contract_address':f"{outputlist[0]}"}, echo=True) + connection = create_database_connection('smart_contract', {'contract_name':f"{parsed_data['contractName']}", 'contract_address':f"{outputlist[0]}"}) participantAdd_txhash = connection.execute('select participantAddress, transactionHash from contractparticipants').fetchall() participantAdd_txhash_T = list(zip(*participantAdd_txhash)) @@ -2665,6 +2665,9 @@ if args.reset == 1: session.commit() session.close() +# Determine API source for block and transaction information + + if "__name__" == "__main__": # MAIN LOGIC STARTS