7 #ifndef PIVX_COINCONTROL_H
8 #define PIVX_COINCONTROL_H
15 #include <unordered_set>
24 return this->outPoint < obj2.
outPoint;
28 return this->outPoint == obj2.
outPoint;
109 std::unordered_set<OutPointWrapper, SimpleOutpointHash>
setSelected;
int64_t CAmount
Amount in PIV (Can be negative)
arith_uint256 UintToArith256(const uint256 &a)
An outpoint - a combination of a transaction hash and an index n into its vout.
std::unordered_set< OutPointWrapper, SimpleOutpointHash > setSelected
bool IsSelected(const BaseOutPoint &output) const
CFeeRate nFeeRate
Feerate to use if overrideFeeRate is true.
unsigned int QuantitySelected() const
void Select(const BaseOutPoint &output, CAmount value=0, bool isP2CS=false)
void ListSelected(std::vector< OutPointWrapper > &vOutpoints) const
bool fAllowWatchOnly
Includes watch only addresses which are solvable.
bool fOverrideFeeRate
Override estimated feerate.
void UnSelect(const BaseOutPoint &output)
CTxDestination destChange
bool fAllowOtherInputs
If false, allows unselected inputs, but requires all selected inputs be used.
Optional< libzcash::SaplingPaymentAddress > destShieldChange
CAmount nMinimumTotalFee
Minimum absolute fee (not per kilobyte)
Fee rate in PIV per kilobyte: CAmount / kB.
bool operator<(const OutPointWrapper &obj2) const
bool operator==(const OutPointWrapper &obj2) const
boost::optional< T > Optional
Substitute for C++17 std::optional.
boost::variant< CNoDestination, CKeyID, CScriptID, CExchangeKeyID > CTxDestination
A txout script template with a specific destination.
size_t operator()(const OutPointWrapper &obj) const