Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Attributes
CReserveKey Class Reference

A key allocated from the key pool. More...

#include <wallet.h>

+ Collaboration diagram for CReserveKey:

Public Member Functions

 CReserveKey (CWallet *pwalletIn)
 
 ~CReserveKey ()
 
void ReturnKey ()
 
bool GetReservedKey (CPubKey &pubkey)
 
void KeepKey ()
 

Protected Attributes

CWalletpwallet
 
int64_t nIndex
 
CPubKey vchPubKey
 

Detailed Description

A key allocated from the key pool.

Definition at line 402 of file wallet.h.

Constructor & Destructor Documentation

CReserveKey::CReserveKey ( CWallet pwalletIn)
inline

Definition at line 409 of file wallet.h.

CReserveKey::~CReserveKey ( )
inline

Definition at line 415 of file wallet.h.

Member Function Documentation

bool CReserveKey::GetReservedKey ( CPubKey pubkey)

Definition at line 1903 of file wallet.cpp.

References CPubKey::IsValid(), LogPrintf, and CKeyPool::vchPubKey.

Referenced by getrawchangeaddress().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CReserveKey::KeepKey ( )

Definition at line 1924 of file wallet.cpp.

Referenced by CWallet::CommitTransaction(), and getrawchangeaddress().

+ Here is the caller graph for this function:

void CReserveKey::ReturnKey ( )

Definition at line 1932 of file wallet.cpp.

Field Documentation

int64_t CReserveKey::nIndex
protected

Definition at line 406 of file wallet.h.

CWallet* CReserveKey::pwallet
protected

Definition at line 405 of file wallet.h.

CPubKey CReserveKey::vchPubKey
protected

Definition at line 407 of file wallet.h.


The documentation for this class was generated from the following files: