Skip to content

Commit 2405ce1

Browse files
author
MarcoFalke
committed
Merge #12746: tests: Remove unused argument max_invalid from check_estimates(...)
a004eb1 tests: Remove unused argument max_invalid from check_estimates(...) (practicalswift) Pull request description: Remove unused argument `max_invalid` from `check_estimates(...)`. _Note to reviewers:_ Let me know if `check_estimates(...)` is incomplete and should be fixed instead. Tree-SHA512: 93d250184f63baa18212d13960e35ce31ebec574dbbb1af8c40f8f3aa92264b4d03878cb33b7e4e6341e0ef28fa4c1c61ad78e8f3eb0ebd78b8ced45964f362a
2 parents 310dc61 + a004eb1 commit 2405ce1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/feature_fee_estimation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

238238
if __name__ == '__main__':
239239
EstimateFeeTest().main()

0 commit comments

Comments
 (0)