Browse Source

Small tweaks to CCoinControl for fundrawtransaction

v1.0.9-lin
Matt Corallo 9 years ago
committed by Jack Grigg
parent
commit
b6616548ce
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 5
      src/coincontrol.h

5
src/coincontrol.h

@ -12,6 +12,8 @@ class CCoinControl
{
public:
CTxDestination destChange;
//! If false, allows unselected inputs, but requires all selected inputs be used
bool fAllowOtherInputs;
CCoinControl()
{
@ -21,6 +23,7 @@ public:
void SetNull()
{
destChange = CNoDestination();
fAllowOtherInputs = false;
setSelected.clear();
}
@ -50,7 +53,7 @@ public:
setSelected.clear();
}
void ListSelected(std::vector<COutPoint>& vOutpoints)
void ListSelected(std::vector<COutPoint>& vOutpoints) const
{
vOutpoints.assign(setSelected.begin(), setSelected.end());
}

Loading…
Cancel
Save