@@ -53,38 +53,38 @@ def test_activation(self, rpc, activation_height):
5353 blocks = self .generatetoaddress (rpc , 127 , rpc .getnewaddress ())
5454 for n , block in enumerate (blocks ):
5555 decode = rpc .getblockheader (block )
56- assert_equal (decode ["versionHex" ], "21000000 " )
56+ assert_equal (decode ["versionHex" ], "20200000 " )
5757 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status" ], "started" )
5858
5959 # Fail to signal on the 128th block. Since the threshold for Simplicity is
6060 # 100% this will prevent activation. Note that our period is 128, not
6161 # 144 (the default), as we have overridden the period for Simplicity. On
6262 # the main Liquid chain it is overridden to be one week of signalling.
6363 block = rpc .getnewblockhex ()
64- block = block [:7 ] + "0" + block [8 :] # turn off Simplicity signal
64+ block = block [:4 ] + "0" + block [5 :] # turn off Simplicity signal
6565 rpc .submitblock (block )
6666 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status" ], "started" )
6767
6868 # Run through another 128 blocks, without failing to signal
6969 blocks = self .generatetoaddress (rpc , 127 , rpc .getnewaddress ())
7070 for n , block in enumerate (blocks ):
7171 decode = rpc .getblockheader (block )
72- assert_equal (decode ["versionHex" ], "21000000 " )
72+ assert_equal (decode ["versionHex" ], "20200000 " )
7373 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status" ], "started" )
7474 # The 128th block then switches from "started" to "locked_in"
7575 blocks = self .generatetoaddress (rpc , 1 , rpc .getnewaddress ())
7676 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status" ], "started" )
7777 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status_next" ], "locked_in" )
78- assert_equal (rpc .getblockheader (blocks [0 ])["versionHex" ], "21000000 " )
78+ assert_equal (rpc .getblockheader (blocks [0 ])["versionHex" ], "20200000 " )
7979
8080 # Run through another 128 blocks, which will go from "locked in" to "active" regardless of signalling
8181 blocks = self .generatetoaddress (rpc , 127 , rpc .getnewaddress ())
8282 for n , block in enumerate (blocks ):
8383 decode = rpc .getblockheader (block )
84- assert_equal (decode ["versionHex" ], "21000000 " )
84+ assert_equal (decode ["versionHex" ], "20200000 " )
8585 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status" ], "locked_in" )
8686 block = rpc .getnewblockhex ()
87- block = block [:7 ] + "0" + block [8 :] # turn off Simplicity signal
87+ block = block [:4 ] + "0" + block [5 :] # turn off Simplicity signal
8888 rpc .submitblock (block )
8989 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status" ], "locked_in" )
9090 assert_equal (rpc .getdeploymentinfo ()["deployments" ]["simplicity" ]["bip9" ]["status_next" ], "active" )
0 commit comments