2020
2121class LLMQChainLocksTest (DashTestFramework ):
2222 def set_test_params (self ):
23- self .set_dash_test_params (5 , 4 , [[ "-testactivationheight=mn_rr@1100" ]] * 5 )
23+ self .set_dash_test_params (5 , 4 )
2424
2525 def run_test (self ):
2626 # Connect all nodes to node1 so that we always have the whole network connected
@@ -243,14 +243,8 @@ def run_test(self):
243243 assert_equal (tip_1 ['cbTx' ]['bestCLSignature' ], tip_0 ['cbTx' ]['bestCLSignature' ])
244244 assert_equal (tip_1 ['cbTx' ]['bestCLHeightDiff' ], tip_0 ['cbTx' ]['bestCLHeightDiff' ] + 1 )
245245
246- self .log .info ("Test that bestCLHeightDiff conditions are relaxed before mn_rr" )
247- self .test_bestCLHeightDiff (False )
248-
249- self .activate_mn_rr (expected_activation_height = 1100 )
250- self .log .info ("Activated mn_rr at height:" + str (self .nodes [0 ].getblockcount ()))
251-
252- self .log .info ("Test that bestCLHeightDiff conditions are stricter after mn_rr" )
253- self .test_bestCLHeightDiff (True )
246+ self .log .info ("Test bestCLHeightDiff restrictions" )
247+ self .test_bestCLHeightDiff ()
254248
255249 def create_chained_txs (self , node , amount ):
256250 txid = node .sendtoaddress (node .getnewaddress (), amount )
@@ -293,11 +287,10 @@ def test_coinbase_best_cl(self, node, expected_cl_in_cb=True, expected_null_cl=F
293287 else :
294288 assert "bestCLHeightDiff" not in cbtx and "bestCLSignature" not in cbtx
295289
296- def test_bestCLHeightDiff (self , mn_rr_active ):
290+ def test_bestCLHeightDiff (self ):
297291 # We need 2 blocks we can grab clsigs from
298292 for _ in range (2 ):
299293 self .wait_for_chainlocked_block_all_nodes (self .generate (self .nodes [0 ], 1 , sync_fun = self .no_op )[0 ])
300- assert_equal (softfork_active (self .nodes [1 ], "mn_rr" ), mn_rr_active )
301294 tip1_hash = self .nodes [1 ].getbestblockhash ()
302295
303296 self .isolate_node (1 )
@@ -339,7 +332,7 @@ def test_bestCLHeightDiff(self, mn_rr_active):
339332 mal_block .hashMerkleRoot = mal_block .calc_merkle_root ()
340333 mal_block .solve ()
341334 result = self .nodes [1 ].submitblock (mal_block .serialize ().hex ())
342- assert_equal (result , "bad-cbtx-older-clsig" if mn_rr_active else "bad-cbtx-invalid-clsig" )
335+ assert_equal (result , "bad-cbtx-older-clsig" )
343336 assert_equal (self .nodes [1 ].getbestblockhash (), tip1_hash )
344337
345338 # Update the sig too and it should pass now when mn_rr is not active and fail otherwise
@@ -350,12 +343,8 @@ def test_bestCLHeightDiff(self, mn_rr_active):
350343 mal_block .hashMerkleRoot = mal_block .calc_merkle_root ()
351344 mal_block .solve ()
352345 result = self .nodes [1 ].submitblock (mal_block .serialize ().hex ())
353- if mn_rr_active :
354- assert_equal (result , "bad-cbtx-older-clsig" )
355- assert_equal (self .nodes [1 ].getbestblockhash (), tip1_hash )
356- else :
357- assert_equal (result , None )
358- assert not self .nodes [1 ].getbestblockhash () == tip1_hash
346+ assert_equal (result , "bad-cbtx-older-clsig" )
347+ assert_equal (self .nodes [1 ].getbestblockhash (), tip1_hash )
359348
360349 self .reconnect_isolated_node (1 , 0 )
361350 self .sync_all ()
0 commit comments