@@ -99,7 +99,7 @@ def split_inputs(from_node, txins, txouts, initial_split=False):
9999 txouts .append ({"txid" : txid , "vout" : 0 , "amount" : half_change })
100100 txouts .append ({"txid" : txid , "vout" : 1 , "amount" : rem_change })
101101
102- def check_estimates (node , fees_seen , max_invalid ):
102+ def check_estimates (node , fees_seen ):
103103 """Call estimatesmartfee and verify that the estimates meet certain invariants."""
104104
105105 delta = 1.0e-6 # account for rounding error
@@ -219,21 +219,21 @@ def run_test(self):
219219 self .log .info ("Creating transactions and mining them with a block size that can't keep up" )
220220 # Create transactions and mine 10 small blocks with node 2, but create txs faster than we can mine
221221 self .transact_and_mine (10 , self .nodes [2 ])
222- check_estimates (self .nodes [1 ], self .fees_per_kb , 14 )
222+ check_estimates (self .nodes [1 ], self .fees_per_kb )
223223
224224 self .log .info ("Creating transactions and mining them at a block size that is just big enough" )
225225 # Generate transactions while mining 10 more blocks, this time with node1
226226 # which mines blocks with capacity just above the rate that transactions are being created
227227 self .transact_and_mine (10 , self .nodes [1 ])
228- check_estimates (self .nodes [1 ], self .fees_per_kb , 2 )
228+ check_estimates (self .nodes [1 ], self .fees_per_kb )
229229
230230 # Finish by mining a normal-sized block:
231231 while len (self .nodes [1 ].getrawmempool ()) > 0 :
232232 self .nodes [1 ].generate (1 )
233233
234234 sync_blocks (self .nodes [0 :3 ], wait = .1 )
235235 self .log .info ("Final estimates after emptying mempools" )
236- check_estimates (self .nodes [1 ], self .fees_per_kb , 2 )
236+ check_estimates (self .nodes [1 ], self .fees_per_kb )
237237
238238if __name__ == '__main__' :
239239 EstimateFeeTest ().main ()
0 commit comments