-
Notifications
You must be signed in to change notification settings - Fork 94
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
[r2r] Retry tx wait confirmation if not on chain #1474
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fast fix! Looks good to me. Though, @sergeyboyko0791 and @shamardy may have some notes 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix! A few minor notes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Only 2 non-blocker fixes needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* enable retry if tx is not available onchain * fixed review notes * fixed failing tests * pr review fixes * set test timeout to 1
* pubkey and secret validation done * Validate taker and maker coin contract * impl scret_hash validation * optimized swap_contract_addre validation * unimplement negotiate_coin_contract_address for slp.rs * removed coin contract addr validation — Postponed * added unit test for parameters * remove unused * PR review fixes * removed validate_secret_hash method from trait * removed validate_secret_hash method from trait * [r2r] Retry tx wait confirmation if not on chain (#1474) * enable retry if tx is not available onchain * fixed review notes * fixed failing tests * pr review fixes * set test timeout to 1 * minor fixes * fix tests * fixed secret_hash check * cargo fmt * pr riview fix * use real pubkey for test case * use correct raw tx bytes for extract_secret test
Enhanced
wait_for_confirmations
to retry a tx request if we gettx is not on chain anymore
error.fixes: #1473