Report on-disk size in gettxoutsetinfo

This commit is contained in:
Pieter Wuille
2017-05-12 15:19:19 -07:00
parent d342424301
commit c3aa0c1194
7 changed files with 35 additions and 1 deletions

View File

@@ -50,6 +50,9 @@ class BlockchainTest(BitcoinTestFramework):
assert_equal(res['height'], 200)
assert_equal(res['txouts'], 200)
assert_equal(res['bestblock'], node.getblockhash(200))
size = res['disk_size']
assert size > 6400
assert size < 64000
assert_equal(len(res['bestblock']), 64)
assert_equal(len(res['hash_serialized_2']), 64)