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 committed Jun 11, 2015
1 parent 9b4e7d9 commit 2d84e22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/coincontrol.h
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 2d84e22

Please sign in to comment.