@@ -65,12 +65,12 @@ class CCoinControl
65
65
66
66
bool HasSelected () const
67
67
{
68
- return (setSelected .size () > 0 );
68
+ return (m_selected_inputs .size () > 0 );
69
69
}
70
70
71
71
bool IsSelected (const COutPoint& output) const
72
72
{
73
- return (setSelected .count (output) > 0 );
73
+ return (m_selected_inputs .count (output) > 0 );
74
74
}
75
75
76
76
bool IsExternalSelected (const COutPoint& output) const
@@ -90,28 +90,28 @@ class CCoinControl
90
90
91
91
void Select (const COutPoint& output)
92
92
{
93
- setSelected .insert (output);
93
+ m_selected_inputs .insert (output);
94
94
}
95
95
96
96
void SelectExternal (const COutPoint& outpoint, const CTxOut& txout)
97
97
{
98
- setSelected .insert (outpoint);
98
+ m_selected_inputs .insert (outpoint);
99
99
m_external_txouts.emplace (outpoint, txout);
100
100
}
101
101
102
102
void UnSelect (const COutPoint& output)
103
103
{
104
- setSelected .erase (output);
104
+ m_selected_inputs .erase (output);
105
105
}
106
106
107
107
void UnSelectAll ()
108
108
{
109
- setSelected .clear ();
109
+ m_selected_inputs .clear ();
110
110
}
111
111
112
112
void ListSelected (std::vector<COutPoint>& vOutpoints) const
113
113
{
114
- vOutpoints.assign (setSelected .begin (), setSelected .end ());
114
+ vOutpoints.assign (m_selected_inputs .begin (), m_selected_inputs .end ());
115
115
}
116
116
117
117
void SetInputWeight (const COutPoint& outpoint, int64_t weight)
@@ -132,7 +132,7 @@ class CCoinControl
132
132
}
133
133
134
134
private:
135
- std::set<COutPoint> setSelected ;
135
+ std::set<COutPoint> m_selected_inputs ;
136
136
std::map<COutPoint, CTxOut> m_external_txouts;
137
137
// ! Map of COutPoints to the maximum weight for that input
138
138
std::map<COutPoint, int64_t > m_input_weights;
0 commit comments