MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetReservedKey

Method GetReservedKey

src/wallet/wallet.cpp:3681–3695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3679}
3680
3681bool CReserveKey::GetReservedKey(CPubKey& pubkey, bool internal)
3682{
3683 if (nIndex == -1)
3684 {
3685 CKeyPool keypool;
3686 if (!pwallet->ReserveKeyFromKeyPool(nIndex, keypool, internal)) {
3687 return false;
3688 }
3689 vchPubKey = keypool.vchPubKey;
3690 fInternal = keypool.fInternal;
3691 }
3692 assert(vchPubKey.IsValid());
3693 pubkey = vchPubKey;
3694 return true;
3695}
3696
3697void CReserveKey::KeepKey()
3698{

Callers 3

getrawchangeaddressFunction · 0.80
CreateTransactionMethod · 0.80
GetScriptForMiningMethod · 0.80

Calls 2

ReserveKeyFromKeyPoolMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected