diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-06-20 12:03:03 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-12-08 14:55:14 -0500 |
commit | 596642c5a9f52dda2599b0bde424366bb22b3c6e (patch) | |
tree | c4636f73d25fadf81507374125348fda18805cc3 /src/wallet/coincontrol.cpp | |
parent | 5321786b9d90eaf35059bb07e6beaaa2cbb257ac (diff) | |
download | bitcoin-596642c5a9f52dda2599b0bde424366bb22b3c6e.tar.xz |
wallet: Replace SelectExternal with SetTxOut
Instead of having a separate CCoinControl::SelectExternal function, we
can use the normal CCoinControl::Select function and explicitly use
PreselectedInput::SetTxOut in the caller. The semantics of what an
external input is remains.
Diffstat (limited to 'src/wallet/coincontrol.cpp')
-rw-r--r-- | src/wallet/coincontrol.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/wallet/coincontrol.cpp b/src/wallet/coincontrol.cpp index 94218b45c1..00852b5f85 100644 --- a/src/wallet/coincontrol.cpp +++ b/src/wallet/coincontrol.cpp @@ -41,12 +41,6 @@ PreselectedInput& CCoinControl::Select(const COutPoint& outpoint) { return m_selected[outpoint]; } - -void CCoinControl::SelectExternal(const COutPoint& outpoint, const CTxOut& txout) -{ - m_selected[outpoint].SetTxOut(txout); -} - void CCoinControl::UnSelect(const COutPoint& outpoint) { m_selected.erase(outpoint); |