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

Change check_repair + certain functions to lock more granularly #252

Merged
merged 9 commits into from
Nov 6, 2019

Conversation

yeastplume
Copy link
Member

@yeastplume yeastplume commented Nov 4, 2019

To support changes in mimblewimble/grin-rfcs#30, this PR aims to:

  • Rename check_repair to scan
  • Modify the internal scan implementation to lock wallet contents a more granular level, freeing up the ability for other threads to run against the wallet while a scan is running.
  • Modify internal versions of functions that rely on scan to also lock at a more granular level.
  • Remove the restore function in favor of the single scan function.
  • Automatically perform a scan when a wallet is created by recovering from seed
  • Modify the command line scan command to optionally accept a start block height for the scan

@yeastplume yeastplume changed the title Change check_repair + certain functions to lock more granularly [WIP] Change check_repair + certain functions to lock more granularly Nov 4, 2019
@yeastplume yeastplume changed the title [WIP] Change check_repair + certain functions to lock more granularly Change check_repair + certain functions to lock more granularly Nov 5, 2019
@yeastplume
Copy link
Member Author

This is ready for review now if anyone wants to take a look

@yeastplume yeastplume merged commit 021c34b into mimblewimble:master Nov 6, 2019
@yeastplume yeastplume deleted the check_repair_locking branch November 6, 2019 10:06
yyangli pushed a commit to mwcproject/mwc-wallet that referenced this pull request May 13, 2020
…lewimble#252)

* Rename check-repair -> scan, make lock logic more granular

* rustfmt

* update owner api implementations where to allow granular locking where required

* rustfmt

* store init state on startup to determine whether full utxo scan is required for new wallets

* rustfmt

* fix for init status persist

* add start height argument to scan

* rustfmt
antiochp pushed a commit to antiochp/grin-wallet that referenced this pull request Aug 7, 2020
…lewimble#252)

* Rename check-repair -> scan, make lock logic more granular

* rustfmt

* update owner api implementations where to allow granular locking where required

* rustfmt

* store init state on startup to determine whether full utxo scan is required for new wallets

* rustfmt

* fix for init status persist

* add start height argument to scan

* 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