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