We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f17a4d1 commit 40506bfCopy full SHA for 40506bf
test/functional/rpc_blockchain.py
@@ -241,6 +241,17 @@ def _test_gettxoutsetinfo(self):
241
del res['disk_size'], res3['disk_size']
242
assert_equal(res, res3)
243
244
+ self.log.info("Test hash_type option for gettxoutsetinfo()")
245
+ # Adding hash_type 'hash_serialized_2', which is the default, should
246
+ # not change the result.
247
+ res4 = node.gettxoutsetinfo(hash_type='hash_serialized_2')
248
+ del res4['disk_size']
249
+ assert_equal(res, res4)
250
+
251
+ # hash_type none should not return a UTXO set hash.
252
+ res5 = node.gettxoutsetinfo(hash_type='none')
253
+ assert 'hash_serialized_2' not in res5
254
255
def _test_getblockheader(self):
256
node = self.nodes[0]
257
0 commit comments