aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.cpp
diff options
context:
space:
mode:
authorSamuel Dobson <dobsonsa68@gmail.com>2021-09-26 12:00:35 +1300
committerSamuel Dobson <dobsonsa68@gmail.com>2021-09-26 15:35:54 +1300
commit6f6f7bb36c492fa76aeda6513be58ca822ea1968 (patch)
treeb56bf520fca3425dd1409e13c8415f91ca618991 /src/wallet/scriptpubkeyman.cpp
parent2434b1078147e71b09c4c1bf0b7ce3f6729a7713 (diff)
downloadbitcoin-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.cpp2
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;
}