From a00eb388e8046fe105666445dff6c91e8f8664cb Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 18 Oct 2019 14:44:58 -0400 Subject: Allow CInputCoin to also be constructed with COutPoint and CTxOut --- src/wallet/coinselection.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/wallet/coinselection.h') diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index a28bee622e..78d877a10b 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -37,6 +37,18 @@ public: m_input_bytes = input_bytes; } + CInputCoin(const COutPoint& outpoint_in, const CTxOut& txout_in) + { + outpoint = outpoint_in; + txout = txout_in; + effective_value = txout.nValue; + } + + CInputCoin(const COutPoint& outpoint_in, const CTxOut& txout_in, int input_bytes) : CInputCoin(outpoint_in, txout_in) + { + m_input_bytes = input_bytes; + } + COutPoint outpoint; CTxOut txout; CAmount effective_value; -- cgit v1.2.3