Skip to content

Commit

Permalink
Small tweaks to CCoinControl for fundrawtransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt authored and str4d committed Mar 2, 2017
1 parent 18e804a commit b661654
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/coincontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class CCoinControl
{
public:
CTxDestination destChange;
//! If false, allows unselected inputs, but requires all selected inputs be used
bool fAllowOtherInputs;

CCoinControl()
{
Expand All @@ -21,6 +23,7 @@ class CCoinControl
void SetNull()
{
destChange = CNoDestination();
fAllowOtherInputs = false;
setSelected.clear();
}

Expand Down Expand Up @@ -50,7 +53,7 @@ class CCoinControl
setSelected.clear();
}

void ListSelected(std::vector<COutPoint>& vOutpoints)
void ListSelected(std::vector<COutPoint>& vOutpoints) const
{
vOutpoints.assign(setSelected.begin(), setSelected.end());
}
Expand Down

0 comments on commit b661654

Please sign in to comment.