mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-15 03:12:44 +02:00
test: Test gettxouttsetinfo hash_type option
This commit is contained in:
parent
f17a4d1c4d
commit
40506bf93f
@ -241,6 +241,17 @@ class BlockchainTest(BitcoinTestFramework):
|
|||||||
del res['disk_size'], res3['disk_size']
|
del res['disk_size'], res3['disk_size']
|
||||||
assert_equal(res, res3)
|
assert_equal(res, res3)
|
||||||
|
|
||||||
|
self.log.info("Test hash_type option for gettxoutsetinfo()")
|
||||||
|
# Adding hash_type 'hash_serialized_2', which is the default, should
|
||||||
|
# not change the result.
|
||||||
|
res4 = node.gettxoutsetinfo(hash_type='hash_serialized_2')
|
||||||
|
del res4['disk_size']
|
||||||
|
assert_equal(res, res4)
|
||||||
|
|
||||||
|
# hash_type none should not return a UTXO set hash.
|
||||||
|
res5 = node.gettxoutsetinfo(hash_type='none')
|
||||||
|
assert 'hash_serialized_2' not in res5
|
||||||
|
|
||||||
def _test_getblockheader(self):
|
def _test_getblockheader(self):
|
||||||
node = self.nodes[0]
|
node = self.nodes[0]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user