diff options
author | Aurèle Oulès <aurele@oules.com> | 2022-09-13 18:59:54 +0200 |
---|---|---|
committer | Aurèle Oulès <aurele@oules.com> | 2023-04-26 10:16:16 +0200 |
commit | becc45b589d07c4523276e4ba2dad8852d0d2632 (patch) | |
tree | e7d9f066f8326e4cd17c176e849910fc3f53d0f6 /src/wallet/coincontrol.h | |
parent | 2cc43de69bdb995ac7faff4ed67caf773026ab29 (diff) | |
download | bitcoin-becc45b589d07c4523276e4ba2dad8852d0d2632.tar.xz |
scripted-diff: Rename setSelected->m_selected_inputs
-BEGIN VERIFY SCRIPT-
sed -i 's/setSelected/m_selected_inputs/g' src/wallet/coincontrol.h src/wallet/coincontrol.cpp
-END VERIFY SCRIPT-
Diffstat (limited to 'src/wallet/coincontrol.h')
-rw-r--r-- | src/wallet/coincontrol.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wallet/coincontrol.h b/src/wallet/coincontrol.h index cb6f0a1635..86069d005e 100644 --- a/src/wallet/coincontrol.h +++ b/src/wallet/coincontrol.h @@ -65,12 +65,12 @@ public: bool HasSelected() const { - return (setSelected.size() > 0); + return (m_selected_inputs.size() > 0); } bool IsSelected(const COutPoint& output) const { - return (setSelected.count(output) > 0); + return (m_selected_inputs.count(output) > 0); } bool IsExternalSelected(const COutPoint& output) const @@ -90,28 +90,28 @@ public: void Select(const COutPoint& output) { - setSelected.insert(output); + m_selected_inputs.insert(output); } void SelectExternal(const COutPoint& outpoint, const CTxOut& txout) { - setSelected.insert(outpoint); + m_selected_inputs.insert(outpoint); m_external_txouts.emplace(outpoint, txout); } void UnSelect(const COutPoint& output) { - setSelected.erase(output); + m_selected_inputs.erase(output); } void UnSelectAll() { - setSelected.clear(); + m_selected_inputs.clear(); } void ListSelected(std::vector<COutPoint>& vOutpoints) const { - vOutpoints.assign(setSelected.begin(), setSelected.end()); + vOutpoints.assign(m_selected_inputs.begin(), m_selected_inputs.end()); } void SetInputWeight(const COutPoint& outpoint, int64_t weight) @@ -132,7 +132,7 @@ public: } private: - std::set<COutPoint> setSelected; + std::set<COutPoint> m_selected_inputs; std::map<COutPoint, CTxOut> m_external_txouts; //! Map of COutPoints to the maximum weight for that input std::map<COutPoint, int64_t> m_input_weights; |