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

Store and use last scanned PMMR height in check_repair #246

Merged
merged 18 commits into from
Nov 4, 2019

Conversation

yeastplume
Copy link
Member

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.

@yeastplume yeastplume changed the title [WIP] Store and use last scanned PMMR height [WIP] Store and use last scanned PMMR height in check_repair Oct 21, 2019
@yeastplume
Copy link
Member Author

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.

@yeastplume yeastplume changed the title [WIP] Store and use last scanned PMMR height in check_repair Store and use last scanned PMMR height in check_repair Nov 4, 2019
@yeastplume yeastplume merged commit c518f35 into mimblewimble:master Nov 4, 2019
@yeastplume yeastplume deleted the update_explore_1 branch November 6, 2019 10:06
yyangli pushed a commit to mwcproject/mwc-wallet that referenced this pull request May 13, 2020
…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
antiochp pushed a commit to antiochp/grin-wallet that referenced this pull request Aug 7, 2020
…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
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.

1 participant