expose CBlockIndex::nTx in getblock(header)

This commit is contained in:
Gregory Sanders committed 2018-06-13 10:20:50 -04:00
1 parent a607d23ae8
commit 86edf4a2a5
3 files changed
+12

No files matched your search

+1
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'])