Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 885 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Shuffle and select coins until nTargetValue is reached while avoiding | * Shuffle and select coins until nTargetValue is reached while avoiding | ||||
* small change; This method is stochastic for some inputs and upon | * small change; This method is stochastic for some inputs and upon | ||||
* completion the coin set and corresponding actual target value is | * completion the coin set and corresponding actual target value is | ||||
* assembled. | * assembled. | ||||
*/ | */ | ||||
bool SelectCoinsMinConf(const Amount nTargetValue, | bool SelectCoinsMinConf(const Amount nTargetValue, | ||||
const CoinEligibilityFilter &eligibilty_filter, | const CoinEligibilityFilter &eligibility_filter, | ||||
std::vector<COutput> vCoins, | std::vector<COutput> vCoins, | ||||
std::set<CInputCoin> &setCoinsRet, | std::set<CInputCoin> &setCoinsRet, | ||||
Amount &nValueRet) const; | Amount &nValueRet) const; | ||||
bool IsSpent(const TxId &txid, uint32_t n) const; | bool IsSpent(const TxId &txid, uint32_t n) const; | ||||
bool IsLockedCoin(const TxId &txid, uint32_t n) const; | bool IsLockedCoin(const TxId &txid, uint32_t n) const; | ||||
void LockCoin(const COutPoint &output); | void LockCoin(const COutPoint &output); | ||||
▲ Show 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | public: | ||||
* wallet. | * wallet. | ||||
*/ | */ | ||||
CTxDestination AddAndGetDestinationForScript(const CScript &script, | CTxDestination AddAndGetDestinationForScript(const CScript &script, | ||||
OutputType); | OutputType); | ||||
/** Whether a given output is spendable by this wallet */ | /** Whether a given output is spendable by this wallet */ | ||||
bool OutputEligibleForSpending( | bool OutputEligibleForSpending( | ||||
const COutput &output, | const COutput &output, | ||||
const CoinEligibilityFilter &eligibilty_filter) const; | const CoinEligibilityFilter &eligibility_filter) 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 |