Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,251 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Get a destination of the requested type (if possible) to the specified | * Get a destination of the requested type (if possible) to the specified | ||||
* script. This function will automatically add the necessary scripts to the | * script. This function will automatically add the necessary scripts to the | ||||
* wallet. | * wallet. | ||||
*/ | */ | ||||
CTxDestination AddAndGetDestinationForScript(const CScript &script, | CTxDestination AddAndGetDestinationForScript(const CScript &script, | ||||
OutputType); | OutputType); | ||||
/** Whether a given output is spendable by this wallet */ | |||||
bool OutputEligibleForSpending(const COutput &output, const int nConfMine, | |||||
const int nConfTheirs, | |||||
const uint64_t nMaxAncestors) const; | |||||
}; | }; | ||||
/** A key allocated from the key pool. */ | /** A key allocated from the key pool. */ | ||||
class CReserveKey final : public CReserveScript { | class CReserveKey final : public CReserveScript { | ||||
protected: | protected: | ||||
CWallet *pwallet; | CWallet *pwallet; | ||||
int64_t nIndex; | int64_t nIndex; | ||||
CPubKey vchPubKey; | CPubKey vchPubKey; | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |