diff options
author | Samuel Dobson <dobsonsa68@gmail.com> | 2021-09-26 12:00:35 +1300 |
---|---|---|
committer | Samuel Dobson <dobsonsa68@gmail.com> | 2021-09-26 15:35:54 +1300 |
commit | 6f6f7bb36c492fa76aeda6513be58ca822ea1968 (patch) | |
tree | b56bf520fca3425dd1409e13c8415f91ca618991 /src/wallet/scriptpubkeyman.cpp | |
parent | 2434b1078147e71b09c4c1bf0b7ce3f6729a7713 (diff) | |
download | bitcoin-6f6f7bb36c492fa76aeda6513be58ca822ea1968.tar.xz |
Make legacy wallet upgrades from non-HD to HD always flush the keypool
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index fe41f9b8cc..0840336831 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -489,7 +489,7 @@ bool LegacyScriptPubKeyMan::Upgrade(int prev_version, int new_version, bilingual } // Regenerate the keypool if upgraded to HD if (hd_upgrade) { - if (!TopUp()) { + if (!NewKeyPool()) { error = _("Unable to generate keys"); return false; } |