From f84fed8eb6a8518a54a997044e55332dd37e223d Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 9 Mar 2018 20:51:22 -0500 Subject: [PATCH] Store effective value, fee, and long term fee in CInputCoin Have CInputCOin store effective value information. This includes the effective value itself, the fee, and the long term fee for the input --- src/wallet/wallet.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index fbb87353c1b..89dc4f399ca 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -513,6 +513,9 @@ public: COutPoint outpoint; CTxOut txout; + CAmount effective_value; + CAmount fee = 0; + CAmount long_term_fee = 0; bool operator<(const CInputCoin& rhs) const { return outpoint < rhs.outpoint;