add back the todo

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-09-22 09:26:55 -05:00
parent 4b579c77aa
commit 64dde0f6c3
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -4417,6 +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;
// TODO: implement keypools for all accounts?
CPubKey pubkey(GenerateNewKey(walletdb, 0, fInternal));
if (!walletdb.WritePool(index, CKeyPool(pubkey, fInternal))) {
throw std::runtime_error(std::string(__func__) + ": writing generated key failed");