Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,448 Lines • ▼ Show 20 Lines | public: | ||||
~CReserveKey() { ReturnKey(); } | ~CReserveKey() { ReturnKey(); } | ||||
void ReturnKey(); | void ReturnKey(); | ||||
bool GetReservedKey(CPubKey &pubkey, bool internal = false); | bool GetReservedKey(CPubKey &pubkey, bool internal = false); | ||||
void KeepKey(); | void KeepKey(); | ||||
void KeepScript() override { KeepKey(); } | void KeepScript() override { KeepKey(); } | ||||
}; | }; | ||||
/** | |||||
* DEPRECATED Account information. | |||||
* Stored in wallet with key "acc"+string account name. | |||||
*/ | |||||
class CAccount { | |||||
public: | |||||
CPubKey vchPubKey; | |||||
CAccount() { SetNull(); } | |||||
void SetNull() { vchPubKey = CPubKey(); } | |||||
ADD_SERIALIZE_METHODS; | |||||
template <typename Stream, typename Operation> | |||||
inline void SerializationOp(Stream &s, Operation ser_action) { | |||||
int nVersion = s.GetVersion(); | |||||
if (!(s.GetType() & SER_GETHASH)) { | |||||
READWRITE(nVersion); | |||||
} | |||||
READWRITE(vchPubKey); | |||||
} | |||||
}; | |||||
/** RAII object to check and reserve a wallet rescan */ | /** RAII object to check and reserve a wallet rescan */ | ||||
class WalletRescanReserver { | class WalletRescanReserver { | ||||
private: | private: | ||||
CWallet *m_wallet; | CWallet *m_wallet; | ||||
bool m_could_reserve; | bool m_could_reserve; | ||||
public: | public: | ||||
explicit WalletRescanReserver(CWallet *w) | explicit WalletRescanReserver(CWallet *w) | ||||
Show All 39 Lines |