Commit d5ab5a4
committed
Merge bitcoin#31452: wallet: Migrate non-HD keys to combo() descriptor
62b2d23 wallet: Migrate non-HD keys to combo() descriptor (Ava Chow)
Pull request description:
Non-HD keys do not have an HD seed ID associated with them, so if this value is the null value (all 0s), then we should not perform any seed ID comparison that would result in excluding the keys from combo() migration.
This changes the migration of non-HD wallets (or blank wallets with imported private keys) to make a single combo() descriptors for the non-HD/imported keys, rather than pk(), pkh(), sh(wpkh()), and wpkh() descriptors for the keys.
Implements bitcoin#31374 (comment)
ACKs for top commit:
laanwj:
Concept and code review ACK 62b2d23
brunoerg:
code review ACK 62b2d23
furszy:
Nice catch. ACK 62b2d23
theStack:
ACK 62b2d23
rkrux:
tACK 62b2d23
Tree-SHA512: 86a80b7dcc1598ab18068a2572ff4b4920b233178b760f7b76c5b21a9e6608005ac872f90e082a8f99b51daab0b049e73e4bee5b8e0b537d56ed0d34122a1f49File tree
2 files changed
+3
-7
lines changed- src/wallet
- test/functional
2 files changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1799 | 1799 | | |
1800 | 1800 | | |
1801 | 1801 | | |
1802 | | - | |
| 1802 | + | |
1803 | 1803 | | |
1804 | 1804 | | |
1805 | 1805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
| 1035 | + | |
1040 | 1036 | | |
1041 | 1037 | | |
1042 | 1038 | | |
1043 | | - | |
| 1039 | + | |
1044 | 1040 | | |
1045 | 1041 | | |
1046 | 1042 | | |
| |||
0 commit comments