Skip to content

Commit fa36aa4

Browse files
author
MarcoFalke
committed
Test: Set -acceptnonstdtxn in feature_fee_estimation
1 parent fa1bb53 commit fa36aa4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/functional/feature_fee_estimation.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,16 @@ def check_estimates(node, fees_seen):
120120
else:
121121
assert_greater_than_or_equal(i + 1, e["blocks"])
122122

123+
123124
class EstimateFeeTest(BitcoinTestFramework):
124125
def set_test_params(self):
125126
self.num_nodes = 3
127+
# mine non-standard txs (e.g. txs with "dust" outputs)
128+
self.extra_args = [
129+
["-acceptnonstdtxn", "-maxorphantx=1000", "-whitelist=127.0.0.1"],
130+
["-acceptnonstdtxn", "-blockmaxweight=68000", "-maxorphantx=1000"],
131+
["-acceptnonstdtxn", "-blockmaxweight=32000", "-maxorphantx=1000"],
132+
]
126133

127134
def skip_test_if_missing_module(self):
128135
self.skip_if_no_wallet()
@@ -133,9 +140,7 @@ def setup_network(self):
133140
But first we need to use one node to create a lot of outputs
134141
which we will use to generate our transactions.
135142
"""
136-
self.add_nodes(3, extra_args=[["-maxorphantx=1000", "-whitelist=127.0.0.1"],
137-
["-blockmaxweight=68000", "-maxorphantx=1000"],
138-
["-blockmaxweight=32000", "-maxorphantx=1000"]])
143+
self.add_nodes(3, extra_args=self.extra_args)
139144
# Use node0 to mine blocks for input splitting
140145
# Node1 mines small blocks but that are bigger than the expected transaction rate.
141146
# NOTE: the CreateNewBlock code starts counting block weight at 4,000 weight,

0 commit comments

Comments
 (0)