diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-01 17:03:09 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-17 10:47:31 +0100 |
commit | fa996c58e8a31ebe610d186cef408b6dd3b385a8 (patch) | |
tree | db5a678ba2b97fa080446d10247a92c9cc426895 /src/index | |
parent | fac01888d17423d6c23a9ce15d98fc88fb34e3cc (diff) |
refactor: Avoid integer overflow in ApplyStats when activating snapshot
Diffstat (limited to 'src/index')
-rw-r--r-- | src/index/coinstatsindex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/coinstatsindex.cpp b/src/index/coinstatsindex.cpp index 9ab9209ca4..e4ee0e674b 100644 --- a/src/index/coinstatsindex.cpp +++ b/src/index/coinstatsindex.cpp @@ -321,7 +321,7 @@ bool CoinStatsIndex::LookUpStats(const CBlockIndex* block_index, CCoinsStats& co coins_stats.hashSerialized = entry.muhash; coins_stats.nTransactionOutputs = entry.transaction_output_count; coins_stats.nBogoSize = entry.bogo_size; - coins_stats.nTotalAmount = entry.total_amount; + coins_stats.total_amount = entry.total_amount; coins_stats.total_subsidy = entry.total_subsidy; coins_stats.total_unspendable_amount = entry.total_unspendable_amount; coins_stats.total_prevout_spent_amount = entry.total_prevout_spent_amount; |