diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2019-08-23 07:42:28 -0700 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2019-08-29 06:24:44 -0700 |
commit | d48c1e837ae1bd08e0f18ad1b57ff72675c3d6ad (patch) | |
tree | d24cc7b258e703fafe66d531787a1c614e169b10 /test/functional/rpc_blockchain.py | |
parent | 442a9c64775454a7073aff9872721c58b1dd35c5 (diff) |
Add window final block height to getchaintxstats
The getchaintxstats RPC now returns the additional key of window_final_block_height
Diffstat (limited to 'test/functional/rpc_blockchain.py')
-rwxr-xr-x | test/functional/rpc_blockchain.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/rpc_blockchain.py b/test/functional/rpc_blockchain.py index 6c30e05084..266a0d6cd2 100755 --- a/test/functional/rpc_blockchain.py +++ b/test/functional/rpc_blockchain.py @@ -186,6 +186,7 @@ class BlockchainTest(BitcoinTestFramework): assert_equal(chaintxstats['time'], b200['time']) assert_equal(chaintxstats['txcount'], 201) assert_equal(chaintxstats['window_final_block_hash'], b200_hash) + assert_equal(chaintxstats['window_final_block_height'], 200) assert_equal(chaintxstats['window_block_count'], 199) assert_equal(chaintxstats['window_tx_count'], 199) assert_equal(chaintxstats['window_interval'], time_diff) @@ -195,6 +196,7 @@ class BlockchainTest(BitcoinTestFramework): assert_equal(chaintxstats['time'], b1['time']) assert_equal(chaintxstats['txcount'], 2) assert_equal(chaintxstats['window_final_block_hash'], b1_hash) + assert_equal(chaintxstats['window_final_block_height'], 1) assert_equal(chaintxstats['window_block_count'], 0) assert 'window_tx_count' not in chaintxstats assert 'window_interval' not in chaintxstats |