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

fix: add Reset operation when reorg fails #41

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

EthanYuan
Copy link
Collaborator

@EthanYuan EthanYuan commented Oct 15, 2024

The block storm in testnet 3 caused the SPV instance to fail in finding a common ancestor during reorg. In this situation, we have added a reset mechanism, allowing the instance to be reset. This change is specifically targeted for Testnet 3.

Note that the SPV client base height does not change but is reset to an earlier state, allowing the instance to start updating from the height and become usable again.

const SPV_RESET_TIP_OFFSET: u32 = 1200;

Related PR

@EthanYuan EthanYuan requested review from jjyr and Flouse October 15, 2024 16:16
@EthanYuan EthanYuan merged commit 6e0831d into utxostack:master Oct 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants