Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,210 Lines • ▼ Show 20 Lines | |||||
public: | public: | ||||
explicit CReserveKey(CWallet *pwalletIn) { | explicit CReserveKey(CWallet *pwalletIn) { | ||||
nIndex = -1; | nIndex = -1; | ||||
pwallet = pwalletIn; | pwallet = pwalletIn; | ||||
fInternal = false; | fInternal = false; | ||||
} | } | ||||
CReserveKey() = default; | |||||
CReserveKey(const CReserveKey &) = delete; | |||||
CReserveKey &operator=(const CReserveKey &) = delete; | |||||
~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(); } | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |