Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* If an address is reserved and KeepDestination() is not called, then the | * If an address is reserved and KeepDestination() is not called, then the | ||||
* address will be returned when the ReserveDestination goes out of scope. | * address will be returned when the ReserveDestination goes out of scope. | ||||
*/ | */ | ||||
class ReserveDestination { | class ReserveDestination { | ||||
protected: | protected: | ||||
//! The wallet to reserve from | //! The wallet to reserve from | ||||
CWallet *const pwallet; | CWallet *const pwallet; | ||||
LegacyScriptPubKeyMan *m_spk_man{nullptr}; | //! The ScriptPubKeyMan to reserve from. Based on type when | ||||
//! GetReservedDestination is called | |||||
ScriptPubKeyMan *m_spk_man{nullptr}; | |||||
OutputType const type; | OutputType const type; | ||||
//! The index of the address's key in the keypool | //! The index of the address's key in the keypool | ||||
int64_t nIndex{-1}; | int64_t nIndex{-1}; | ||||
//! The public key for the address | |||||
CPubKey vchPubKey; | |||||
//! The destination | //! The destination | ||||
CTxDestination address; | CTxDestination address; | ||||
//! Whether this is from the internal (change output) keypool | //! Whether this is from the internal (change output) keypool | ||||
bool fInternal{false}; | bool fInternal{false}; | ||||
public: | public: | ||||
//! Construct a ReserveDestination object. This does NOT reserve an address | //! Construct a ReserveDestination object. This does NOT reserve an address | ||||
//! yet | //! yet | ||||
▲ Show 20 Lines • Show All 1,301 Lines • Show Last 20 Lines |