mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
Support downgrading after recovered keypool witness keys
This commit is contained in:
parent
940a21932b
commit
7ee54fd7c7
@ -3636,6 +3636,7 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id)
|
|||||||
if (walletdb.ReadPool(index, keypool)) { //TODO: This should be unnecessary
|
if (walletdb.ReadPool(index, keypool)) { //TODO: This should be unnecessary
|
||||||
m_pool_key_to_index.erase(keypool.vchPubKey.GetID());
|
m_pool_key_to_index.erase(keypool.vchPubKey.GetID());
|
||||||
}
|
}
|
||||||
|
LearnAllRelatedScripts(keypool.vchPubKey);
|
||||||
walletdb.ErasePool(index);
|
walletdb.ErasePool(index);
|
||||||
LogPrintf("keypool index %d removed\n", index);
|
LogPrintf("keypool index %d removed\n", index);
|
||||||
it = setKeyPool->erase(it);
|
it = setKeyPool->erase(it);
|
||||||
|
Loading…
Reference in New Issue
Block a user