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

Added retry for gateway tx #1765

Merged
merged 2 commits into from
May 4, 2022
Merged

Added retry for gateway tx #1765

merged 2 commits into from
May 4, 2022

Conversation

oxade
Copy link
Contributor

@oxade oxade commented May 4, 2022

This handles (3) in #1393 since it's a simple case

@@ -48,6 +48,8 @@ pub type GatewayClient = Box<dyn GatewayAPI + Sync + Send>;
pub type GatewayTxSeqNumber = u64;

const MAX_TX_RANGE_SIZE: u64 = 4096;
/// Number of times to retry failed TX
const MAX_NUM_TX_RETRIES: usize = 5;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would ideally want a compile-tile way to assert this is always non zero

@oxade oxade enabled auto-merge (squash) May 4, 2022 01:46
@oxade oxade merged commit b644b87 into main May 4, 2022
@oxade oxade deleted the retry_txes_across_sui branch May 4, 2022 01:56
longbowlu pushed a commit that referenced this pull request May 12, 2022
* Added retry for gateway tx
punwai pushed a commit that referenced this pull request Jul 27, 2022
* Added retry for gateway tx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants