diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-09-06 00:22:19 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2022-10-23 01:33:41 +0200 |
commit | 2ca5a496c2f3cbcc63ea15fa05c1658e7f527bbc (patch) | |
tree | dddf50c34e7b573be29b446d6e3e40aeaf7d563c /test/functional/data | |
parent | cb94db119f4643f49da63520d64efc99fb0c0795 (diff) | |
download | bitcoin-2ca5a496c2f3cbcc63ea15fa05c1658e7f527bbc.tar.xz |
rpc: Improve getblockstats
- Fix getblockstats for block height 0 which previously returned an error.
- Introduce alternative utxo_*_actual statistics which exclude unspendables: Genesis block, BIP30, unspendable outputs
- Update test data
- Explicitly test Genesis block results
Diffstat (limited to 'test/functional/data')
-rw-r--r-- | test/functional/data/rpc_getblockstats.json | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/functional/data/rpc_getblockstats.json b/test/functional/data/rpc_getblockstats.json index 16dbc5fe60..487945dd9f 100644 --- a/test/functional/data/rpc_getblockstats.json +++ b/test/functional/data/rpc_getblockstats.json @@ -142,7 +142,9 @@ "totalfee": 0, "txs": 1, "utxo_increase": 2, - "utxo_size_inc": 163 + "utxo_increase_actual": 1, + "utxo_size_inc": 163, + "utxo_size_inc_actual": 75 }, { "avgfee": 4460, @@ -179,7 +181,9 @@ "totalfee": 4460, "txs": 2, "utxo_increase": 3, - "utxo_size_inc": 236 + "utxo_increase_actual": 2, + "utxo_size_inc": 236, + "utxo_size_inc_actual": 148 }, { "avgfee": 24906, @@ -216,7 +220,9 @@ "totalfee": 74720, "txs": 4, "utxo_increase": 5, - "utxo_size_inc": 384 + "utxo_size_inc": 384, + "utxo_increase_actual": 4, + "utxo_size_inc_actual": 296 } ] -}
\ No newline at end of file +} |