| 3726 | } |
| 3727 | |
| 3728 | void CWallet::KeepKey(int64_t nIndex) |
| 3729 | { |
| 3730 | // Remove from key pool |
| 3731 | if (fFileBacked) { |
| 3732 | CWalletDB walletdb(strWalletFile); |
| 3733 | walletdb.ErasePool(nIndex); |
| 3734 | nKeysLeftSinceAutoBackup = nWalletBackups ? nKeysLeftSinceAutoBackup - 1 : 0; |
| 3735 | } |
| 3736 | LogPrintf("keypool keep %d\n", nIndex); |
| 3737 | } |
| 3738 | |
| 3739 | void CWallet::ReturnKey(int64_t nIndex, bool internal, const CPubKey& pubkey) |
| 3740 | { |
no test coverage detected