From 2d922f5d319389645355bbab9231e68c26a9b838 Mon Sep 17 00:00:00 2001 From: Pasta Date: Wed, 18 Sep 2019 18:24:33 -0500 Subject: [PATCH] fix Signed-off-by: Pasta --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 3e85410fb..6060f09e5 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4417,7 +4417,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize) assert(m_max_keypool_index < std::numeric_limits::max()); // How in the hell did you use so many keys? int64_t index = ++m_max_keypool_index; - CPubKey pubkey(GenerateNewKey(walletdb, fInternal)); + CPubKey pubkey(GenerateNewKey(walletdb, 0, fInternal)); if (!walletdb.WritePool(index, CKeyPool(pubkey, fInternal))) { throw std::runtime_error(std::string(__func__) + ": writing generated key failed"); }