Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,052 Lines • ▼ Show 20 Lines | bool SelectCoinsMinConf(const Amount nTargetValue, | ||||
std::set<CInputCoin> &setCoinsRet, | std::set<CInputCoin> &setCoinsRet, | ||||
Amount &nValueRet, | Amount &nValueRet, | ||||
const CoinSelectionParams &coin_selection_params, | const CoinSelectionParams &coin_selection_params, | ||||
bool &bnb_used) const; | bool &bnb_used) const; | ||||
bool IsSpent(interfaces::Chain::Lock &locked_chain, | bool IsSpent(interfaces::Chain::Lock &locked_chain, | ||||
const COutPoint &outpoint) const | const COutPoint &outpoint) const | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
// Whether this or any UTXO with the same CTxDestination has been spent. | |||||
bool IsUsedDestination(const CTxDestination &dst) const; | |||||
bool IsUsedDestination(const TxId &txid, unsigned int n) const; | |||||
void SetUsedDestinationState(const TxId &hash, unsigned int n, bool used); | |||||
std::vector<OutputGroup> GroupOutputs(const std::vector<COutput> &outputs, | std::vector<OutputGroup> GroupOutputs(const std::vector<COutput> &outputs, | ||||
bool single_coin) const; | bool single_coin) const; | ||||
bool IsLockedCoin(const COutPoint &outpoint) const | bool IsLockedCoin(const COutPoint &outpoint) const | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
void LockCoin(const COutPoint &output) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | void LockCoin(const COutPoint &output) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
void UnlockCoin(const COutPoint &output) | void UnlockCoin(const COutPoint &output) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
▲ Show 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | struct Balance { | ||||
//! Untrusted, but in mempool (pending) | //! Untrusted, but in mempool (pending) | ||||
Amount m_mine_untrusted_pending{Amount::zero()}; | Amount m_mine_untrusted_pending{Amount::zero()}; | ||||
//! Immature coinbases in the main chain | //! Immature coinbases in the main chain | ||||
Amount m_mine_immature{Amount::zero()}; | Amount m_mine_immature{Amount::zero()}; | ||||
Amount m_watchonly_trusted{Amount::zero()}; | Amount m_watchonly_trusted{Amount::zero()}; | ||||
Amount m_watchonly_untrusted_pending{Amount::zero()}; | Amount m_watchonly_untrusted_pending{Amount::zero()}; | ||||
Amount m_watchonly_immature{Amount::zero()}; | Amount m_watchonly_immature{Amount::zero()}; | ||||
}; | }; | ||||
Balance GetBalance(int min_depth = 0) const; | Balance GetBalance(int min_depth = 0, bool avoid_reuse = true) const; | ||||
Amount GetAvailableBalance(const CCoinControl *coinControl = nullptr) const; | Amount GetAvailableBalance(const CCoinControl *coinControl = nullptr) const; | ||||
OutputType TransactionChangeType(OutputType change_type, | OutputType TransactionChangeType(OutputType change_type, | ||||
const std::vector<CRecipient> &vecSend); | const std::vector<CRecipient> &vecSend); | ||||
/** | /** | ||||
* Insert additional inputs into the transaction by calling | * Insert additional inputs into the transaction by calling | ||||
* CreateTransaction(); | * CreateTransaction(); | ||||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |