diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-08-22 20:21:20 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-04-19 20:31:02 +0200 |
commit | 2501576eccb08af80471c7b7b843b189ad6758c0 (patch) | |
tree | 31891e04458f1c36128d3418ebc36e3ac5c9253a /test/functional/feature_coinstatsindex.py | |
parent | 655d929836a71af23d2035d2e2e99ad8b8c340c3 (diff) |
rpc, index: Add verbose amounts tracking to Coinstats index
Diffstat (limited to 'test/functional/feature_coinstatsindex.py')
-rwxr-xr-x | test/functional/feature_coinstatsindex.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/feature_coinstatsindex.py b/test/functional/feature_coinstatsindex.py index 9ff3a58510..ff4034176c 100755 --- a/test/functional/feature_coinstatsindex.py +++ b/test/functional/feature_coinstatsindex.py @@ -56,6 +56,8 @@ class CoinStatsIndexTest(BitcoinTestFramework): self.wait_until(lambda: not try_rpc(-32603, "Unable to read UTXO set", index_node.gettxoutsetinfo, 'muhash')) for hash_option in index_hash_options: res1 = index_node.gettxoutsetinfo(hash_option) + # The fields 'block_info' and 'total_unspendable_amount' only exist on the index + del res1['block_info'], res1['total_unspendable_amount'] res1.pop('muhash', None) # Everything left should be the same @@ -70,11 +72,13 @@ class CoinStatsIndexTest(BitcoinTestFramework): for hash_option in index_hash_options: # Fetch old stats by height res2 = index_node.gettxoutsetinfo(hash_option, 102) + del res2['block_info'], res2['total_unspendable_amount'] res2.pop('muhash', None) assert_equal(res0, res2) # Fetch old stats by hash res3 = index_node.gettxoutsetinfo(hash_option, res0['bestblock']) + del res3['block_info'], res3['total_unspendable_amount'] res3.pop('muhash', None) assert_equal(res0, res3) |