Test: Set -acceptnonstdtxn in feature_fee_estimation
This commit is contained in:
parent
fa1bb53b0d
commit
fa36aa4922
1 changed files with 8 additions and 3 deletions
|
@ -120,9 +120,16 @@ def check_estimates(node, fees_seen):
|
||||||
else:
|
else:
|
||||||
assert_greater_than_or_equal(i + 1, e["blocks"])
|
assert_greater_than_or_equal(i + 1, e["blocks"])
|
||||||
|
|
||||||
|
|
||||||
class EstimateFeeTest(BitcoinTestFramework):
|
class EstimateFeeTest(BitcoinTestFramework):
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.num_nodes = 3
|
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):
|
def skip_test_if_missing_module(self):
|
||||||
self.skip_if_no_wallet()
|
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
|
But first we need to use one node to create a lot of outputs
|
||||||
which we will use to generate our transactions.
|
which we will use to generate our transactions.
|
||||||
"""
|
"""
|
||||||
self.add_nodes(3, extra_args=[["-maxorphantx=1000", "-whitelist=127.0.0.1"],
|
self.add_nodes(3, extra_args=self.extra_args)
|
||||||
["-blockmaxweight=68000", "-maxorphantx=1000"],
|
|
||||||
["-blockmaxweight=32000", "-maxorphantx=1000"]])
|
|
||||||
# Use node0 to mine blocks for input splitting
|
# Use node0 to mine blocks for input splitting
|
||||||
# Node1 mines small blocks but that are bigger than the expected transaction rate.
|
# 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,
|
# NOTE: the CreateNewBlock code starts counting block weight at 4,000 weight,
|
||||||
|
|
Loading…
Reference in a new issue