@@ -65,7 +65,7 @@ def run_test(self):
6565 # This function tests the result of the getpakinfo RPC.
6666 # *_pak is either False (undefined paklist), "reject" or a list of
6767 # (online, offline) tuples
68- def test_pak (node , config_pak , block_pak , validate ):
68+ def test_pak (node , config_pak , block_pak ):
6969 getpakinfo = node .getpakinfo ()
7070
7171 def compare (actual , expected ):
@@ -85,11 +85,11 @@ def compare(actual, expected):
8585 compare (getpakinfo ['block_paklist' ], block_pak )
8686
8787 # In the beginning the blockchain paklist is "reject"
88- test_pak (self .nodes [i_novalidate ], pak1 , "reject" , False )
89- test_pak (self .nodes [i_undefined ], False , "reject" , True )
90- test_pak (self .nodes [i_pak1 ], pak1 , "reject" , True )
91- test_pak (self .nodes [i_pak2 ], pak2 , "reject" , True )
92- test_pak (self .nodes [i_reject ], "reject" , "reject" , True )
88+ test_pak (self .nodes [i_novalidate ], pak1 , "reject" )
89+ test_pak (self .nodes [i_undefined ], False , "reject" )
90+ test_pak (self .nodes [i_pak1 ], pak1 , "reject" )
91+ test_pak (self .nodes [i_pak2 ], pak2 , "reject" )
92+ test_pak (self .nodes [i_reject ], "reject" , "reject" )
9393
9494 # i_novalidate creates block without a commitment
9595 block_proposal = self .nodes [i_novalidate ].getnewblockhex ()
@@ -121,11 +121,11 @@ def compare(actual, expected):
121121 # Submit block with commitment to pak1 and check each node's state.
122122 self .nodes [i_undefined ].submitblock (block_proposal )
123123 self .sync_all ()
124- test_pak (self .nodes [i_novalidate ], pak1 , pak1 , False )
125- test_pak (self .nodes [i_undefined ], False , pak1 , True )
126- test_pak (self .nodes [i_pak1 ], pak1 , pak1 , True )
127- test_pak (self .nodes [i_pak2 ], pak2 , pak1 , True )
128- test_pak (self .nodes [i_reject ], "reject" , pak1 , True )
124+ test_pak (self .nodes [i_novalidate ], pak1 , pak1 )
125+ test_pak (self .nodes [i_undefined ], False , pak1 )
126+ test_pak (self .nodes [i_pak1 ], pak1 , pak1 )
127+ test_pak (self .nodes [i_pak2 ], pak2 , pak1 )
128+ test_pak (self .nodes [i_reject ], "reject" , pak1 )
129129 # Check that another block by i_pak1 (without a commitment) is valid to
130130 # i_pak1 but invalid to i_pak2 and i_reject
131131 block_proposal = self .nodes [i_undefined ].getnewblockhex ()
@@ -150,11 +150,11 @@ def compare(actual, expected):
150150 # Submit "reject" block and check state.
151151 self .nodes [i_undefined ].submitblock (block_proposal )
152152 self .sync_all ()
153- test_pak (self .nodes [i_novalidate ], pak1 , "reject" , False )
154- test_pak (self .nodes [i_undefined ], False , "reject" , True )
155- test_pak (self .nodes [i_pak1 ], pak1 , "reject" , True )
156- test_pak (self .nodes [i_pak2 ], pak2 , "reject" , True )
157- test_pak (self .nodes [i_reject ], "reject" , "reject" , True )
153+ test_pak (self .nodes [i_novalidate ], pak1 , "reject" )
154+ test_pak (self .nodes [i_undefined ], False , "reject" )
155+ test_pak (self .nodes [i_pak1 ], pak1 , "reject" )
156+ test_pak (self .nodes [i_pak2 ], pak2 , "reject" )
157+ test_pak (self .nodes [i_reject ], "reject" , "reject" )
158158 # Check that another block by i_reject (without a commitment) is valid to i_reject.
159159 block_proposal = self .nodes [i_reject ].getnewblockhex ()
160160 assert_equal (self .nodes [i_reject ].testproposedblock (block_proposal ), None )
@@ -182,7 +182,7 @@ def compare(actual, expected):
182182 connect_nodes_bi (self .nodes ,3 ,4 )
183183
184184 # Check current state of i_pak1
185- test_pak (self .nodes [i_pak1 ], pak2 , "reject" , True )
185+ test_pak (self .nodes [i_pak1 ], pak2 , "reject" )
186186 # Create a new block with i_pak1 which should have a commitment to pak2
187187 # and check that it's correctly rejected or accepted.
188188 block_proposal = self .nodes [i_pak1 ].getnewblockhex ()
@@ -196,11 +196,11 @@ def compare(actual, expected):
196196 # Submit block with commitment to pak2 and check state.
197197 self .nodes [i_pak1 ].submitblock (block_proposal )
198198 self .sync_all ()
199- test_pak (self .nodes [i_novalidate ], "reject" , pak2 , False )
200- test_pak (self .nodes [i_undefined ], False , pak2 , True )
201- test_pak (self .nodes [i_pak1 ], pak2 , pak2 , True )
202- test_pak (self .nodes [i_pak2 ], pak2 , pak2 , True )
203- test_pak (self .nodes [i_reject ], "reject" , pak2 , True )
199+ test_pak (self .nodes [i_novalidate ], "reject" , pak2 )
200+ test_pak (self .nodes [i_undefined ], False , pak2 )
201+ test_pak (self .nodes [i_pak1 ], pak2 , pak2 )
202+ test_pak (self .nodes [i_pak2 ], pak2 , pak2 )
203+ test_pak (self .nodes [i_reject ], "reject" , pak2 )
204204
205205 # Reset PAK conf arguments to start to test mempool acceptance and wallet
206206
0 commit comments