Skip to content

Commit 216c9b0

Browse files
committed
test: passing a value below 5 MB to -maxmempool should throw an error
1 parent 5174a13 commit 216c9b0

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
@@ -87,6 +87,10 @@ def run_test(self):
8787
self.log.info('Create a mempool tx that will not pass mempoolminfee')
8888
assert_raises_rpc_error(-26, "mempool min fee not met", miniwallet.send_self_transfer, from_node=node, fee_rate=relayfee, mempool_valid=False)
8989

90+
self.log.info('Test passing a value below the minimum (5 MB) to -maxmempool throws an error')
91+
self.stop_node(0)
92+
self.nodes[0].assert_start_raises_init_error(["-maxmempool=4"], "Error: -maxmempool must be at least 5 MB")
93+
9094

9195
if __name__ == '__main__':
9296
MempoolLimitTest().main()

0 commit comments

Comments
 (0)