Update payment_neogo.py #24

Merged
abereziny merged 1 commit from small_fix into master 2023-05-23 15:10:52 +00:00

View file

@ -79,7 +79,8 @@ def transaction_accepted(main_chain: MainChain, tx_id: str):
try: try:
for _ in range(0, TX_PERSIST_TIMEOUT): for _ in range(0, TX_PERSIST_TIMEOUT):
time.sleep(1) time.sleep(1)
resp = main_chain.rpc_client.get_transaction_height(tx_id) neogo = NeoGo(shell=main_chain.host.get_shell(), neo_go_exec_path=NEOGO_EXECUTABLE)
resp = neogo.query.tx(tx_hash=tx_id, rpc_endpoint=main_chain.get_endpoint())
if resp is not None: if resp is not None:
logger.info(f"TX is accepted in block: {resp}") logger.info(f"TX is accepted in block: {resp}")
return True, resp return True, resp