Commit ee36717
committed
Merge bitcoin/bitcoin#30621: wallet: fix blank legacy detection
6ed424f wallet: fix, detect blank legacy wallets in IsLegacy (furszy)
Pull request description:
Blank legacy wallets do not have active SPKM. They can only be
detected by checking the descriptors' flag or the db format.
This enables the migration of blank legacy wallets in the GUI.
To test this:
1) Create a blank legacy wallet.
2) Try to migrate it using the GUI's toolbar "Migrate Wallet" button.
-> In master: The button will be disabled because `CWallet::IsLegacy()` returns false for blank legacy wallet.
-> In this PR: the button will be enabled, allowing the migration of legacy wallets.
ACKs for top commit:
achow101:
ACK 6ed424f
tdb3:
ACK 6ed424f
glozow:
ACK 6ed424f
Tree-SHA512: c06c4c4c2e546ccb033287b9aa3aee4ca36b47aeb2fac6fbed5de774b65caef9c818fc8dfdaac6ce78839b2d5d642a5632a5b44c5e889ea169ced80ed50501a71 file changed
+24
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| |||
1626 | 1626 | | |
1627 | 1627 | | |
1628 | 1628 | | |
1629 | | - | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1630 | 1632 | | |
1631 | 1633 | | |
1632 | 1634 | | |
| |||
3559 | 3561 | | |
3560 | 3562 | | |
3561 | 3563 | | |
3562 | | - | |
| 3564 | + | |
| 3565 | + | |
3563 | 3566 | | |
3564 | 3567 | | |
3565 | 3568 | | |
| |||
3589 | 3592 | | |
3590 | 3593 | | |
3591 | 3594 | | |
3592 | | - | |
| 3595 | + | |
| 3596 | + | |
3593 | 3597 | | |
3594 | 3598 | | |
3595 | 3599 | | |
| |||
3846 | 3850 | | |
3847 | 3851 | | |
3848 | 3852 | | |
3849 | | - | |
3850 | | - | |
3851 | | - | |
3852 | | - | |
3853 | | - | |
| 3853 | + | |
3854 | 3854 | | |
3855 | 3855 | | |
3856 | 3856 | | |
| |||
0 commit comments