Skip to content

Commit 475d37d

Browse files
committed
Bugfix: RPC/mempool: Use correct vbyte value for maxmempool assignment
1 parent 50c1218 commit 475d37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static RPCHelpMan maxmempool()
400400
int64_t nMempoolSizeMin = maxmempoolMinimumBytes(mempool.m_opts.limits.descendant_size_vbytes);
401401
if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin)
402402
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("MaxMempool size %d is too small", nSize));
403-
mempool.m_opts.max_size_bytes = nSize;
403+
mempool.m_opts.max_size_bytes = nMempoolSizeMax;
404404

405405
auto node_context = util::AnyPtr<NodeContext>(request.context);
406406
if (node_context && node_context->chainman) {

0 commit comments

Comments
 (0)