Skip to content

Commit 2e0cf8a

Browse files
committed
Add "instantsendlocks" to getmempoolinfo RPC (dashpay#3047)
1 parent a8fb825 commit 2e0cf8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,7 @@ UniValue mempoolInfoToJSON()
15031503
size_t maxmempool = GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000;
15041504
ret.push_back(Pair("maxmempool", (int64_t) maxmempool));
15051505
ret.push_back(Pair("mempoolminfee", ValueFromAmount(mempool.GetMinFee(maxmempool).GetFeePerK())));
1506+
ret.push_back(Pair("instantsendlocks", (int64_t)llmq::quorumInstantSendManager->GetInstantSendLockCount()));
15061507

15071508
return ret;
15081509
}
@@ -1520,6 +1521,7 @@ UniValue getmempoolinfo(const JSONRPCRequest& request)
15201521
" \"usage\": xxxxx, (numeric) Total memory usage for the mempool\n"
15211522
" \"maxmempool\": xxxxx, (numeric) Maximum memory usage for the mempool\n"
15221523
" \"mempoolminfee\": xxxxx (numeric) Minimum fee for tx to be accepted\n"
1524+
" \"instantsendlocks\": xxxxx, (numeric) Number of unconfirmed instant send locks\n"
15231525
"}\n"
15241526
"\nExamples:\n"
15251527
+ HelpExampleCli("getmempoolinfo", "")

0 commit comments

Comments
 (0)