MCPcopy Create free account
hub / github.com/LUX-Core/lux / KeepKey

Method KeepKey

src/wallet.cpp:3728–3737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3726}
3727
3728void 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
3739void CWallet::ReturnKey(int64_t nIndex, bool internal, const CPubKey& pubkey)
3740{

Callers 6

getrawchangeaddressFunction · 0.80
CommitTransactionMethod · 0.80
FundTransactionMethod · 0.80
CreateDenominatedMethod · 0.80

Calls 2

ErasePoolMethod · 0.80
CPubKeyClass · 0.70

Tested by

no test coverage detected