expose CBlockIndex::nTx in getblock(header)

This commit is contained in:
Gregory Sanders
2018-06-12 16:39:29 -04:00
parent a607d23ae8
commit 86edf4a2a5
3 changed files with 12 additions and 0 deletions

View File

@ -217,6 +217,7 @@ class BlockchainTest(BitcoinTestFramework):
assert_equal(header['confirmations'], 1)
assert_equal(header['previousblockhash'], secondbesthash)
assert_is_hex_string(header['chainwork'])
assert_equal(header['nTx'], 1)
assert_is_hash_string(header['hash'])
assert_is_hash_string(header['previousblockhash'])
assert_is_hash_string(header['merkleroot'])