Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-09-18 18:24:33 -05:00
parent c438c9322f
commit 2d922f5d31
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -4417,7 +4417,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
assert(m_max_keypool_index < std::numeric_limits<int64_t>::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");
}