aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-06-13 09:58:22 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-06-13 09:58:22 -0300
commit216c9b00ec6f8dca815fa5a308abaf4c34674b41 (patch)
treec6cfc5d6dce3f0900661c470dd0f8862b9447720
parent5174a139c92c1238f9700d06e362dc628d81a0a9 (diff)
test: passing a value below 5 MB to -maxmempool should throw an error
-rwxr-xr-xtest/functional/mempool_limit.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/mempool_limit.py b/test/functional/mempool_limit.py
index 3619e05761..452312500d 100755
--- a/test/functional/mempool_limit.py
+++ b/test/functional/mempool_limit.py
@@ -87,6 +87,10 @@ class MempoolLimitTest(BitcoinTestFramework):
self.log.info('Create a mempool tx that will not pass mempoolminfee')
assert_raises_rpc_error(-26, "mempool min fee not met", miniwallet.send_self_transfer, from_node=node, fee_rate=relayfee, mempool_valid=False)
+ self.log.info('Test passing a value below the minimum (5 MB) to -maxmempool throws an error')
+ self.stop_node(0)
+ self.nodes[0].assert_start_raises_init_error(["-maxmempool=4"], "Error: -maxmempool must be at least 5 MB")
+
if __name__ == '__main__':
MempoolLimitTest().main()