@@ -280,7 +280,7 @@ def run_test(self):
280280 self .send_blocks ([b12 , b13 , b14 ], success = False , reject_reason = 'bad-cb-amount' , reconnect = True )
281281
282282 # New tip should be b13.
283- assert_equal (node .getbestblockhash (), b13 .hash )
283+ assert_equal (node .getbestblockhash (), b13 .hash_hex )
284284
285285 # Add a block with MAX_BLOCK_SIGOPS and one with one more sigop
286286 # genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
@@ -734,7 +734,7 @@ def run_test(self):
734734 self .block_heights [b48 .hash_int ] = self .block_heights [b44 .hash_int ] + 1 # b48 is a parent of b44
735735 b48p = self .next_block ("48p" )
736736 self .send_blocks ([b48 , b48p ], success = True ) # Reorg to the longer chain
737- node .invalidateblock (b48p .hash ) # mark b48p as invalid
737+ node .invalidateblock (b48p .hash_hex ) # mark b48p as invalid
738738 node .setmocktime (0 )
739739
740740 # Test Merkle tree malleability
@@ -778,7 +778,7 @@ def run_test(self):
778778 self .blocks [56 ] = b56
779779 assert_equal (len (b56 .vtx ), 3 )
780780 b56 = self .update_block (56 , [tx1 ])
781- assert_equal (b56 .hash , b57 .hash )
781+ assert_equal (b56 .hash_hex , b57 .hash_hex )
782782 self .send_blocks ([b56 ], success = False , reject_reason = 'bad-txns-duplicate' , reconnect = True )
783783
784784 # b57p2 - a good block with 6 tx'es, don't submit until end
@@ -796,7 +796,7 @@ def run_test(self):
796796 self .move_tip (55 )
797797 b56p2 = copy .deepcopy (b57p2 )
798798 self .blocks ["b56p2" ] = b56p2
799- assert_equal (b56p2 .hash , b57p2 .hash )
799+ assert_equal (b56p2 .hash_hex , b57p2 .hash_hex )
800800 assert_equal (len (b56p2 .vtx ), 6 )
801801 b56p2 = self .update_block ("b56p2" , [tx3 , tx4 ])
802802 self .send_blocks ([b56p2 ], success = False , reject_reason = 'bad-txns-duplicate' , reconnect = True )
@@ -954,7 +954,7 @@ def run_test(self):
954954 self .move_tip ('dup_2' )
955955 b64 = CBlock (b64a )
956956 b64 .vtx = copy .deepcopy (b64a .vtx )
957- assert_equal (b64 .hash , b64a .hash )
957+ assert_equal (b64 .hash_hex , b64a .hash_hex )
958958 assert_equal (b64 .get_weight (), MAX_BLOCK_WEIGHT )
959959 self .blocks [64 ] = b64
960960 b64 = self .update_block (64 , [])
0 commit comments