Update payment_neogo.py

This commit is contained in:
sstovbyra 2023-05-22 23:27:42 +03:00 committed by Andrey Berezin
parent 10468fa545
commit a34c34991f

View file

@ -79,7 +79,8 @@ def transaction_accepted(main_chain: MainChain, tx_id: str):
try:
for _ in range(0, TX_PERSIST_TIMEOUT):
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:
logger.info(f"TX is accepted in block: {resp}")
return True, resp