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 trusted wallet sync on deep reorg #18831

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

almogdepaz
Copy link
Contributor

@almogdepaz almogdepaz commented Nov 6, 2024

this makes the wallet able to handle deep reorgs on trusted sync without losing state

Purpose:

fix wallet trusted sync on deep reorgs

Current Behavior:

wallet doesn't get the correct forkpoint from the full node and does not rolleback to the correct block, currently when we finish long sync in the fullnode we send peak_height -1 as the forkpoint to the wallet

New Behavior:

send the correct forkpoint from the node after we finish the long sync and make wallet rolleback to the forkpoint before using the wallet long_sync to sync to the new peak

Testing Notes:

@almogdepaz almogdepaz added Wallet full_node sync Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog full_node sync Wallet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant