Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UtxoRpcClientEnum::wait_for_confirmations fails with "not on chain" on the first attempt. #1473

Closed
artemii235 opened this issue Sep 17, 2022 · 3 comments
Assignees
Labels
bug Something isn't working P0

Comments

@artemii235
Copy link
Member

"maker_swap:836] !taker_coin.wait_for_confirmations: rpc_clients:178] Tx fc4b0ec65417a3fd1e0e622983ef09453652917a1325669278cd82d21b8bb49b is not on chain anymore"

But the transaction is there, eventually: https://rick.explorer.dexstats.info/tx/fc4b0ec65417a3fd1e0e622983ef09453652917a1325669278cd82d21b8bb49b

Multiple attempts should be made before returning the error. cc @sergeyboyko0791 @shamardy

@sergeyboyko0791
Copy link

@cipig could you please check if the issue is fixed?

@cipig
Copy link
Member

cipig commented Sep 27, 2022

looks good:

27 11:02:44, coins:rpc_clients:189] ERROR Tx f4d35aac8f4d7239fc7aaaf10dde5d09601d064205d88e22fc385fe4bc9a030b not found on chain, error: rpc_clients:2149] JsonRpcError { client_info: "coin: DOI", request: JsonRpcRequest { jsonrpc: "2.0", id: "111", method: "blockchain.transaction.get", params: [String("f4d35aac8f4d7239fc7aaaf10dde5d09601d064205d88e22fc385fe4bc9a030b"), Bool(true)] }, error: Response(ugly-bird-70.doi.works:50002, Object({"code": Number(2), "message": String("daemon error: DaemonError({'code': -5, 'message': 'No such mempool or blockchain transaction. Use gettransaction for wallet transactions.'})")})) }, retrying in 10 seconds. Retries left: 10

10s later the tx was there and swap continued and finished

@sergeyboyko0791
Copy link

Great, thank you!
Close as completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0
Projects
None yet
Development

No branches or pull requests

4 participants