diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2021-06-03 01:31:47 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-06-03 01:48:24 +0200 |
commit | fb65dde147f63422c4148b089c2f5be0bf5ba80f (patch) | |
tree | 3e82166d8e079cb1c3f9e17a9b4ad3ca17e913a7 /src/node | |
parent | 8ea8c927ac05980d6a81252e40b7444e9abb74f9 (diff) |
scripted-diff: Fix coinstats data member names
Initially these values were 'per block' in an earlier version but were then changed to total values. The names were not updated to reflect that.
-BEGIN VERIFY SCRIPT-
s() { git grep -l "$1" src | xargs sed -i "s/$1/$2/g"; }
s 'm_block_unspendable_amount' 'm_total_unspendable_amount'
s 'm_block_prevout_spent_amount' 'm_total_prevout_spent_amount'
s 'm_block_new_outputs_ex_coinbase_amount' 'm_total_new_outputs_ex_coinbase_amount'
s 'm_block_coinbase_amount' 'm_total_coinbase_amount'
s 'block_unspendable_amount' 'total_unspendable_amount'
s 'block_prevout_spent_amount' 'total_prevout_spent_amount'
s 'block_new_outputs_ex_coinbase_amount' 'total_new_outputs_ex_coinbase_amount'
s 'block_coinbase_amount' 'total_coinbase_amount'
s 'unspendables_genesis_block' 'total_unspendables_genesis_block'
s 'unspendables_bip30' 'total_unspendables_bip30'
s 'unspendables_scripts' 'total_unspendables_scripts'
s 'unspendables_unclaimed_rewards' 'total_unspendables_unclaimed_rewards'
s 'm_unspendables_genesis_block' 'm_total_unspendables_genesis_block'
s 'm_unspendables_bip30' 'm_total_unspendables_bip30'
s 'm_unspendables_scripts' 'm_total_unspendables_scripts'
s 'm_unspendables_unclaimed_rewards' 'm_total_unspendables_unclaimed_rewards'
-END VERIFY SCRIPT-
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/coinstats.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/node/coinstats.h b/src/node/coinstats.h index 8be256edc9..ae2e46e4d9 100644 --- a/src/node/coinstats.h +++ b/src/node/coinstats.h @@ -46,14 +46,14 @@ struct CCoinsStats // Following values are only available from coinstats index CAmount total_subsidy{0}; - CAmount block_unspendable_amount{0}; - CAmount block_prevout_spent_amount{0}; - CAmount block_new_outputs_ex_coinbase_amount{0}; - CAmount block_coinbase_amount{0}; - CAmount unspendables_genesis_block{0}; - CAmount unspendables_bip30{0}; - CAmount unspendables_scripts{0}; - CAmount unspendables_unclaimed_rewards{0}; + CAmount total_unspendable_amount{0}; + CAmount total_prevout_spent_amount{0}; + CAmount total_new_outputs_ex_coinbase_amount{0}; + CAmount total_coinbase_amount{0}; + CAmount total_unspendables_genesis_block{0}; + CAmount total_unspendables_bip30{0}; + CAmount total_unspendables_scripts{0}; + CAmount total_unspendables_unclaimed_rewards{0}; CCoinsStats(CoinStatsHashType hash_type) : m_hash_type(hash_type) {} }; |