Skip to content

Commit b466f6b

Browse files
committed
[Tests] Use blockmaxweight where tests previously had blockmaxsize
1 parent ec7dbaa commit b466f6b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/functional/feature_fee_estimation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ def setup_network(self):
133133
which we will use to generate our transactions.
134134
"""
135135
self.add_nodes(3, extra_args=[["-maxorphantx=1000", "-whitelist=127.0.0.1"],
136-
["-maxorphantx=1000"],
137-
["-maxorphantx=1000"]])
136+
["-blockmaxweight=68000", "-maxorphantx=1000"],
137+
["-blockmaxweight=32000", "-maxorphantx=1000"]])
138138
# Use node0 to mine blocks for input splitting
139139
# Node1 mines small blocks but that are bigger than the expected transaction rate.
140-
# NOTE: the CreateNewBlock code starts counting block size at 1,000 bytes,
141-
# (17k is room enough for 110 or so transactions)
140+
# NOTE: the CreateNewBlock code starts counting block weight at 4,000 weight,
141+
# (68k weight is room enough for 120 or so transactions)
142142
# Node2 is a stingy miner, that
143143
# produces too small blocks (room for only 55 or so transactions)
144144

test/functional/feature_pruning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def reorg_test(self):
124124
# Reboot node 1 to clear its mempool (hopefully make the invalidate faster)
125125
# Lower the block max size so we don't keep mining all our big mempool transactions (from disconnected blocks)
126126
self.stop_node(1)
127-
self.start_node(1, extra_args=["-maxreceivebuffer=20000","-checkblocks=5", "-disablesafemode"])
127+
self.start_node(1, extra_args=["-maxreceivebuffer=20000","-blockmaxweight=20000", "-checkblocks=5", "-disablesafemode"])
128128

129129
height = self.nodes[1].getblockcount()
130130
self.log.info("Current block height: %d" % height)
@@ -147,7 +147,7 @@ def reorg_test(self):
147147

148148
# Reboot node1 to clear those giant tx's from mempool
149149
self.stop_node(1)
150-
self.start_node(1, extra_args=["-maxreceivebuffer=20000","-checkblocks=5", "-disablesafemode"])
150+
self.start_node(1, extra_args=["-maxreceivebuffer=20000","-blockmaxweight=20000", "-checkblocks=5", "-disablesafemode"])
151151

152152
self.log.info("Generating new longer chain of 300 more blocks")
153153
self.nodes[1].generate(300)

0 commit comments

Comments
 (0)