From fa996c58e8a31ebe610d186cef408b6dd3b385a8 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 1 Nov 2021 17:03:09 +0100 Subject: refactor: Avoid integer overflow in ApplyStats when activating snapshot --- src/index/coinstatsindex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index/coinstatsindex.cpp') 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; -- cgit v1.2.3