Browse Source
0.16656fde5
Add script birthtime metadata to dump and import wallet (MeshCollider)1bab9b2
Add script dump note to RPC help text and release notes (MeshCollider)68c1e00
Add test for importwallet (MeshCollider)9e1184d
Add dumpwallet scripts test (MeshCollider)ef0c730
Add scripts to importwallet RPC (MeshCollider)b702ae8
Add CScripts to dumpwallet RPC (MeshCollider)cdc260a
Add GetCScripts to CBasicKeyStore (MeshCollider) Pull request description: As discussed in https://github.com/bitcoin/bitcoin/pull/11289#issuecomment-334600457, adds the CScripts from the wallet to the `dumpwallet` RPC and then allows them to be imported with the `importwallet` RPC. Includes a basic test, and modifies the helptext of the dumpwallet RPC. Notes: - Reviewers: use `?w=1` to avoid the indentation-only change in commit `Add scripts to importwallet RPC ` - currently the scripts are followed with `# addr=` comments just as the other keys are, unsure if this might confuse users into thinking all the scripts are for valid P2SH addresses though, but I don't think that should be an issue. - there are no birthtimes for scripts, so script imports don't affect rescans - `importwallet` imports the CScripts but I'm not sure how to approach specifying whether scripts are for P2SH addresses, BIP173 addresses, etc. whether that matters or not. Otherwise the RPC helptext might just need modification. Fixes #11715 Tree-SHA512: 36c55837b3a58b9d3499d4c0c2ae82153d62aa71919e751574651b63a1d2b8ecc83796db4553cc65dad9b5341c3a42ae2fcf4d62598c30af267f8e1461ba8272
Wladimir J. van der Laan
7 years ago
5 changed files with 123 additions and 40 deletions
Loading…
Reference in new issue