-
Notifications
You must be signed in to change notification settings - Fork 284
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
wallet: add migration to regenerate missing change addresses (WIP) #415
Conversation
Rebased and addressed nits. |
Codecov Report
@@ Coverage Diff @@
## master #415 +/- ##
==========================================
+ Coverage 62.53% 62.62% +0.08%
==========================================
Files 129 129
Lines 34866 34913 +47
Branches 5926 5933 +7
==========================================
+ Hits 21805 21864 +59
+ Misses 13061 13049 -12
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet thanks for the rebase. Tested with #417 can be merged together or separately...
ACK c4a2e18
Show Signature
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
ACK c4a2e185c2442d43f65027d61a0ca52d84d6cfdb
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE5hdzzW4BBA4vG9eM5+KYS2KJyToFAl7ND3AACgkQ5+KYS2KJ
yTqZTBAAx1zc9mSfMCPt55/rXqCwQilU6TKW57husOT24jF++hwHAG6t4EULrvOn
gp5tUJx8zaP6E1WZlrWITyr2sKGqI5oxmiZjLdySvoxWU2kpp/8vqXIoZcsBwj2b
QhFLjTYYMlXnkMAzMRRxeD04vydmtqQa1DDcoaDkraO8OKPNKpxOR/13fq1SQn9N
Wt+UuTDm1bXEnX9pfYYyf6aA4n88FlFIl6kvwYCJ9evKze0yH7ERc3vR/ex86bzW
GmCwk4drBN2pThkzT3s7Q80+X1JtKLN+E7RGEmm+Z34aXRVVJRQCpe7MvdiTxeAG
jE8lTNEqVVvKZ4eYdxdbrQIK+eiUawPoAQFXh1AwhvyfbMWzeDAvWwaiiyUwNw8e
ad/6jqcchjmY+6SVq6ATX+JumiH9nh7n099JBcjsWCPvRZFgnjlMHFOadbPwKiv5
P+nLlmBEwe3iyLQ+Sk7Zhmbuyt0O6cXMHhh8WMMi+KwP41INU2uNMwA3//f9204G
2P1qngV+sXRUEF6EYRX4SqA1nTZYOcNdaLRu6nHaFG8dD32Mbocga6hxMBdTffv2
Jl52t68FChUcbL/OsUgnXa6My9Iq9ZabVmDOZdlHotfg5xVHW1kLUuC5lkZGAiA5
pHqLBFZGr9psclRZKOP35WQxdVa1di5wpKzAg9voohUhc6tAvD4=
=zZR9
-----END PGP SIGNATURE-----
pinheadmz's public key is on keybase
c4a2e18
to
1351d80
Compare
rebase to 1351d80:
log message can be tested by adding this diff to the test: diff --git a/test/wallet-change-test.js b/test/wallet-change-test.js
index 39376570..39d142d0 100644
--- a/test/wallet-change-test.js
+++ b/test/wallet-change-test.js
@@ -19,7 +19,9 @@ const node = new FullNode({
prefix: path,
memory: false,
network: 'regtest',
- plugins: [require('../lib/wallet/plugin')]
+ plugins: [require('../lib/wallet/plugin')],
+ logConsole: true,
+ logLevel: 'debug'
});
const {wdb} = node.require('walletdb'); |
New thoughts on this, after testing #480 and having a hard time getting it to work. Here's what I think the flow could be for this PR:
This way, all the migration logic can stay in hsd, no external scripts. The user adds the option to all their normal options whatever they are, including prefix and network and all that, so the migration process already has all the data it needs (this is an issue passing all that to the migration script). The user can back up their walletDB any way they want to (we will have to remove the backup logic form this PR as well) and the if the user decides NOT to migrate they still have the option to revert hsd to the last version and relaunch before anything has happened to their data. Thoughts @tynes @turbomaze ? |
aa024a5
to
223c481
Compare
Rebase to c25799d : New flow works like this:
Test script: https://gist.github.com/pinheadmz/25fcd11ec8ba3916830ebc01d888bd7b |
@tynes @turbomaze if you guys are cool with this new scheme I'll spell it all out in the changelog in the next commit, |
Looks great! |
Users should be informed to backup manually before running migration.
81308f8
to
1789576
Compare
rebase to 1789576: |
Pull Request Test Coverage Report for Build 204277284
💛 - Coveralls |
Ok added a message to the changelog - I think this is done. @chjj @tynes @turbomaze looking for final ACKs and then I say we merge and release hsd. |
See #414, #413, #411