-
Notifications
You must be signed in to change notification settings - Fork 135
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
Store and use last scanned PMMR height in check_repair
#246
Conversation
check_repair
This is in a working state, so would like to merge work on this to date shortly as part of works for https://github.com/yeastplume/grin-rfcs/blob/master/text/0000-wallet-update-process.md. In the current state, the incremental scanning by block height is complete and working. Would like to avoid a single mega-PR for this work, so subsequent PRs will fill in some of the details details according to how the RFC develops. |
check_repair
check_repair
…e#246) * store last scanned PMMR check index * rustfmt * fix issue where account names will be overwritten on check_repair * rustfmt * attempts to include check_repair scan as part of normal update * rustfmt * fix error on restore due to incorrect parent key id being set * addition of calls to heigt_range_to_pmmr_indices traits and implementations * rustfmt * get_chain_height -> get_chain_tip * rustfmt * retrieve height+hash from node, modify check_repair to use block heights * rustfmt * fixes from live testing * rustfmt * test cleanup and change dependencies back to grin master * rustfmt
…e#246) * store last scanned PMMR check index * rustfmt * fix issue where account names will be overwritten on check_repair * rustfmt * attempts to include check_repair scan as part of normal update * rustfmt * fix error on restore due to incorrect parent key id being set * addition of calls to heigt_range_to_pmmr_indices traits and implementations * rustfmt * get_chain_height -> get_chain_tip * rustfmt * retrieve height+hash from node, modify check_repair to use block heights * rustfmt * fixes from live testing * rustfmt * test cleanup and change dependencies back to grin master * rustfmt
As part of #244, it will be necessary to store the last scanned height during a
check_repair
, and part of the wallet update process should be to 'check_repair` back a threshold of blocks from the last scanned height. This PR aims to add that functionality, as well as modifying the existing check_repair method to accept a number of block heights back to start scanning from.May require some changes or an addition to the node API to support this properly, still exploring what the best thing to do is here.