@@ -120,9 +120,16 @@ def check_estimates(node, fees_seen):
120
120
else :
121
121
assert_greater_than_or_equal (i + 1 , e ["blocks" ])
122
122
123
+
123
124
class EstimateFeeTest (BitcoinTestFramework ):
124
125
def set_test_params (self ):
125
126
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
+ ]
126
133
127
134
def skip_test_if_missing_module (self ):
128
135
self .skip_if_no_wallet ()
@@ -133,9 +140,7 @@ def setup_network(self):
133
140
But first we need to use one node to create a lot of outputs
134
141
which we will use to generate our transactions.
135
142
"""
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 )
139
144
# Use node0 to mine blocks for input splitting
140
145
# Node1 mines small blocks but that are bigger than the expected transaction rate.
141
146
# NOTE: the CreateNewBlock code starts counting block weight at 4,000 weight,
0 commit comments