aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2018-03-09 20:51:22 -0500
committerAndrew Chow <[email protected]>2018-03-09 21:15:40 -0500
commitf84fed8eb6a8518a54a997044e55332dd37e223d (patch)
tree265072d9414c7fc3e7acd4db9f3496b5c1669211 /src
parentCalculate and store the number of bytes required to spend an input (diff)
downloaddiscoin-f84fed8eb6a8518a54a997044e55332dd37e223d.tar.xz
discoin-f84fed8eb6a8518a54a997044e55332dd37e223d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index fbb87353c..89dc4f399 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;