@@ -99,7 +99,7 @@ def split_inputs(from_node, txins, txouts, initial_split=False):
99
99
txouts .append ({"txid" : txid , "vout" : 0 , "amount" : half_change })
100
100
txouts .append ({"txid" : txid , "vout" : 1 , "amount" : rem_change })
101
101
102
- def check_estimates (node , fees_seen , max_invalid ):
102
+ def check_estimates (node , fees_seen ):
103
103
"""Call estimatesmartfee and verify that the estimates meet certain invariants."""
104
104
105
105
delta = 1.0e-6 # account for rounding error
@@ -219,21 +219,21 @@ def run_test(self):
219
219
self .log .info ("Creating transactions and mining them with a block size that can't keep up" )
220
220
# Create transactions and mine 10 small blocks with node 2, but create txs faster than we can mine
221
221
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 )
223
223
224
224
self .log .info ("Creating transactions and mining them at a block size that is just big enough" )
225
225
# Generate transactions while mining 10 more blocks, this time with node1
226
226
# which mines blocks with capacity just above the rate that transactions are being created
227
227
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 )
229
229
230
230
# Finish by mining a normal-sized block:
231
231
while len (self .nodes [1 ].getrawmempool ()) > 0 :
232
232
self .nodes [1 ].generate (1 )
233
233
234
234
sync_blocks (self .nodes [0 :3 ], wait = .1 )
235
235
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 )
237
237
238
238
if __name__ == '__main__' :
239
239
EstimateFeeTest ().main ()
0 commit comments