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

Grin wallet check/repair #2256

merged 12 commits into from Dec 30, 2018


None yet
2 participants
Copy link

yeastplume commented Dec 29, 2018

Creates a wallet check_repair process as described in #2242

Should work identically to the restore (as a matter of fact, you should be able to run it against an empty wallet and achieve the same effect). However, check_repair scans the UTXO set from the node and:

  • Restores any missing outputs, creating a transaction log entry for them (identical to the restore process)
  • Changes the state of any outputs that may have been marked as 'Spent' but are still in the UTXO set back to 'Unspent', and cancels any associated transactions.
  • Unlocks any Locked outputs that are still in the UTXO set, and cancels the associated locking transaction.

Can't guarantee this process will 100% repair the transaction log (it does its best), however the output state should always match the UTXO set after running this command.


This comment has been minimized.

Copy link

AvaGlobalgithub commented on 43c1a13 Dec 30, 2018


yeastplume added some commits Dec 30, 2018

@yeastplume yeastplume changed the title [WIP] Grin wallet check/repair Grin wallet check/repair Dec 30, 2018

@yeastplume yeastplume merged commit 3eb599a into mimblewimble:master Dec 30, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

@yeastplume yeastplume deleted the yeastplume:wallet_check branch Jan 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment