-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
wallet airdrop: Fetch a new last_id to prevent DuplicateSignature errors during AccountInUse retries #2171
Conversation
Move that to thin_client.rs? |
src/wallet.rs
Outdated
@@ -783,15 +783,31 @@ fn request_and_confirm_airdrop( | |||
}; | |||
match status { | |||
RpcSignatureStatus::AccountInUse => { | |||
last_id = get_last_id(rpc_client)?; | |||
// Fetch a new last_id, to prevent the retry from getting rejected as a |
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.
Why are you implementing a DuplicateSignature handler in the AccountInUse handler?
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.
I'm not. When AccountInUse
happens, we need to fetch a new last_id to prevent DuplicateSignature
on the next retry
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.
got it, thanks!
Bah this is wrong. |
Can't unfortunately, as |
@garious this PR is fixed up now if you care to take another look. It's not fancy stuff though |
Undo deprecation message edit
…ana-labs#2171) Undo deprecation message edit
Attempts to fix the intermittent CI failure that occurred at https://buildkite.com/solana-labs/solana/builds/6169#ff62509f-f382-43a9-a886-538aff015182