Report on-disk size in gettxoutsetinfo

This commit is contained in:
Pieter Wuille committed 2017-05-26 13:33:39 -07:00
1 parent d342424301
commit c3aa0c1194
7 files changed
+35 -1

No files matched your search

+3
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)