mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
add back the todo
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
4b579c77aa
commit
64dde0f6c3
@ -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?
|
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;
|
int64_t index = ++m_max_keypool_index;
|
||||||
|
|
||||||
|
// TODO: implement keypools for all accounts?
|
||||||
CPubKey pubkey(GenerateNewKey(walletdb, 0, fInternal));
|
CPubKey pubkey(GenerateNewKey(walletdb, 0, fInternal));
|
||||||
if (!walletdb.WritePool(index, CKeyPool(pubkey, fInternal))) {
|
if (!walletdb.WritePool(index, CKeyPool(pubkey, fInternal))) {
|
||||||
throw std::runtime_error(std::string(__func__) + ": writing generated key failed");
|
throw std::runtime_error(std::string(__func__) + ": writing generated key failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user