Test: Set -acceptnonstdtxn in feature_fee_estimation

This commit is contained in:
MarcoFalke 2019-08-01 10:40:57 -04:00
parent fa1bb53b0d
commit fa36aa4922
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548
1 changed files with 8 additions and 3 deletions

View File

@ -120,9 +120,16 @@ def check_estimates(node, fees_seen):
else:
assert_greater_than_or_equal(i + 1, e["blocks"])
class EstimateFeeTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 3
# mine non-standard txs (e.g. txs with "dust" outputs)
self.extra_args = [
["-acceptnonstdtxn", "-maxorphantx=1000", "-whitelist=127.0.0.1"],
["-acceptnonstdtxn", "-blockmaxweight=68000", "-maxorphantx=1000"],
["-acceptnonstdtxn", "-blockmaxweight=32000", "-maxorphantx=1000"],
]
def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
@ -133,9 +140,7 @@ class EstimateFeeTest(BitcoinTestFramework):
But first we need to use one node to create a lot of outputs
which we will use to generate our transactions.
"""
self.add_nodes(3, extra_args=[["-maxorphantx=1000", "-whitelist=127.0.0.1"],
["-blockmaxweight=68000", "-maxorphantx=1000"],
["-blockmaxweight=32000", "-maxorphantx=1000"]])
self.add_nodes(3, extra_args=self.extra_args)
# Use node0 to mine blocks for input splitting
# Node1 mines small blocks but that are bigger than the expected transaction rate.
# NOTE: the CreateNewBlock code starts counting block weight at 4,000 weight,