[wallet] Add logging to MarkReserveKeysAsUsed

Github-Pull: #11044
Rebased-From: 67ceff4039
Tree-SHA512: 850c5b1010c84e164edf24a83ae36e46309b2eb7a67854bad509265ed590ba67d5f743a8416590da6ecca85fe4bda7f20e8c3152e422638eb7898db11a416af7
This commit is contained in:
John Newbery 2017-08-14 13:38:21 -04:00 committed by Wladimir J. van der Laan
parent 4ef8374559
commit 6ab120cc6c
No known key found for this signature in database
GPG Key ID: 1E4AED62986CD25D

View File

@ -3659,6 +3659,7 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id)
m_pool_key_to_index.erase(keypool.vchPubKey.GetID());
}
walletdb.ErasePool(index);
LogPrintf("keypool index %d removed\n", index);
it = setKeyPool->erase(it);
}
}