diff options
author | glozow <gloriajzhao@gmail.com> | 2024-08-16 16:52:49 +0100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2024-08-16 16:54:05 +0100 |
commit | ee367170cb2acf82b6ff8e0ccdbc1cce09730662 (patch) | |
tree | 8f3a2638cf5d08aa00588bbfa99b2c4194a98851 /init.h | |
parent | 6474132d1b6a02e248ed6603b5a89ec038c35f7d (diff) | |
parent | 6ed424f2db609f9f39ec1d1da2077c7616f3a0c2 (diff) | |
download | bitcoin-master.tar.xz |
6ed424f2db609f9f39ec1d1da2077c7616f3a0c2 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 6ed424f2db609f9f39ec1d1da2077c7616f3a0c2
tdb3:
ACK 6ed424f2db609f9f39ec1d1da2077c7616f3a0c2
glozow:
ACK 6ed424f2db609f9f39ec1d1da2077c7616f3a0c2
Tree-SHA512: c06c4c4c2e546ccb033287b9aa3aee4ca36b47aeb2fac6fbed5de774b65caef9c818fc8dfdaac6ce78839b2d5d642a5632a5b44c5e889ea169ced80ed50501a7
Diffstat (limited to 'init.h')
0 files changed, 0 insertions, 0 deletions