mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-01 16:31:33 +01:00
Replace bytes_serialized with bogosize
This commit is contained in:
@@ -49,6 +49,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
assert_equal(res['transactions'], 200)
|
||||
assert_equal(res['height'], 200)
|
||||
assert_equal(res['txouts'], 200)
|
||||
assert_equal(res['bogosize'], 17000),
|
||||
assert_equal(res['bestblock'], node.getblockhash(200))
|
||||
size = res['disk_size']
|
||||
assert size > 6400
|
||||
@@ -65,6 +66,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
assert_equal(res2['total_amount'], Decimal('0'))
|
||||
assert_equal(res2['height'], 0)
|
||||
assert_equal(res2['txouts'], 0)
|
||||
assert_equal(res2['bogosize'], 0),
|
||||
assert_equal(res2['bestblock'], node.getblockhash(0))
|
||||
assert_equal(len(res2['hash_serialized_2']), 64)
|
||||
|
||||
@@ -76,6 +78,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
assert_equal(res['transactions'], res3['transactions'])
|
||||
assert_equal(res['height'], res3['height'])
|
||||
assert_equal(res['txouts'], res3['txouts'])
|
||||
assert_equal(res['bogosize'], res3['bogosize'])
|
||||
assert_equal(res['bestblock'], res3['bestblock'])
|
||||
assert_equal(res['hash_serialized_2'], res3['hash_serialized_2'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user