Skip to content

Commit 2d922f5

Browse files
fix
Signed-off-by: Pasta <pasta@dashboost.org>
1 parent c438c93 commit 2d922f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4417,7 +4417,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
44174417
assert(m_max_keypool_index < std::numeric_limits<int64_t>::max()); // How in the hell did you use so many keys?
44184418
int64_t index = ++m_max_keypool_index;
44194419

4420-
CPubKey pubkey(GenerateNewKey(walletdb, fInternal));
4420+
CPubKey pubkey(GenerateNewKey(walletdb, 0, fInternal));
44214421
if (!walletdb.WritePool(index, CKeyPool(pubkey, fInternal))) {
44224422
throw std::runtime_error(std::string(__func__) + ": writing generated key failed");
44234423
}

0 commit comments

Comments
 (0)