Skip to content

Commit 10a370c

Browse files
committed
merge bitcoin#25358: passing a value below 5 MB to -maxmempool should throw an error
1 parent d629348 commit 10a370c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/mempool_limit.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ def run_test(self):
7676
self.log.info('Create a mempool tx that will not pass mempoolminfee')
7777
assert_raises_rpc_error(-26, "mempool min fee not met", miniwallet.send_self_transfer, from_node=node, fee_rate=relayfee, mempool_valid=False)
7878

79+
self.log.info('Test passing a value below the minimum (5 MB) to -maxmempool throws an error')
80+
self.stop_node(0)
81+
self.nodes[0].assert_start_raises_init_error(["-maxmempool=4"], "Error: -maxmempool must be at least 5 MB")
82+
7983

8084
if __name__ == '__main__':
8185
MempoolLimitTest().main()

0 commit comments

Comments
 (0)