File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ def set_test_params(self):
24
24
def skip_test_if_missing_module (self ):
25
25
self .skip_if_no_wallet ()
26
26
27
+ def test_deterministic_hash_results (self ):
28
+ self .log .info ("Test deterministic UTXO set hash results" )
29
+
30
+ # These depend on the setup_clean_chain option, the chain loaded from the cache
31
+ assert_equal (self .nodes [0 ].gettxoutsetinfo ()['hash_serialized_2' ], "b32ec1dda5a53cd025b95387aad344a801825fe46a60ff952ce26528f01d3be8" )
32
+ assert_equal (self .nodes [0 ].gettxoutsetinfo ("muhash" )['muhash' ], "dd5ad2a105c2d29495f577245c357409002329b9f4d6182c0af3dc2f462555c8" )
33
+
27
34
def test_muhash_implementation (self ):
28
35
self .log .info ("Test MuHash implementation consistency" )
29
36
@@ -71,6 +78,7 @@ def test_muhash_implementation(self):
71
78
assert_equal (finalized [::- 1 ].hex (), node_muhash )
72
79
73
80
def run_test (self ):
81
+ self .test_deterministic_hash_results ()
74
82
self .test_muhash_implementation ()
75
83
76
84
You can’t perform that action at this time.
0 commit comments