Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[WIP] [wallet] keypool restore #10830
Conversation
jonasschnelli
referenced
this pull request
Jul 14, 2017
Closed
Add HD wallet auto-restore functionality #10240
jonasschnelli
added some commits
Apr 20, 2017
|
I've done my best to address the comments from #10240, but the history on that PR is rather convoluted, so I may have missed some. @ryanofsky - do you mind checking this PR for any that I may have missed? Obviously I still need to address the three main points in the PR description. |
Yeah, planning to look at this first thing next week. Do you know if this needs to be tagged for 0.15? It wasn't clear from earlier if this fixes a new problem introduced in this release by #9294. |
|
Hmm, it would be nice to pull in a cut-down version of this for 0.15 - skip the pause-if-wallet-falls-behind stuff and jack up the keypool default a ton (with associated performance fixes for too-often-wallet-flushing). This should get us to a place that +/- doesnt have any of the issues folks were complaining about at the meeting and will only pretty-rarely miss transactions (ie if you run out of keypool, an issue which clearly would be worse pre-hd, and we can just set keypool very large). |
fanquake
added the
Wallet
label
Jul 15, 2017
|
@TheBlueMatt since you listed a list of what could be left out-- the most important feature of this is marking all keys up to a used key as used. If we want to cut down the pause stuff for now, we could couple that with something that prolongs keeping an encrypted wallet unlocked while syncing/rescanning is running. Then at least an encrypted wallet recovery is a matter of unlock then rescan. Not as elegant as pausing but workable. |
|
needs rebase |
Talking offline, seems there isn't really a relationship with #9294 (#9294 might even make the problem less bad) and that isn't a new problem since 0.14. Holding off on review since most of my comments from #10240 were about the pause mechanism and John was going to work on a simpler version of this change without pausing to target 0.15. |
sipa
added this to the
0.15.0
milestone
Jul 17, 2017
|
Closing. Not required for 0.15, although may revisit later. #10882 is a simpler alternative which doesn't include the block sync pause stuff. |
jnewbery commentedJul 14, 2017
This is #10240 rebased on master, with some of the comments addressed. I've tidied the code up to current style (braces, variable names, etc) and also squashed/split/re-arranged the commits to help reviewers.
Not ready for merge yet, but I'm happy to receive early feedback.
Unaddressed feedback from #10240:
Thanks to @jonasschnelli for his work on #10240. Paging @ryanofsky @gmaxwell @sipa since they provided feedback on 10240.