Skip to content

Commit 4a7525d

Browse files
codablockUdjinM6
authored andcommitted
Add "instantsendlocks" to getmempoolinfo RPC (#3047)
1 parent 5bc53b6 commit 4a7525d

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
@@ -1594,6 +1594,7 @@ UniValue mempoolInfoToJSON()
15941594
size_t maxmempool = gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000;
15951595
ret.push_back(Pair("maxmempool", (int64_t) maxmempool));
15961596
ret.push_back(Pair("mempoolminfee", ValueFromAmount(mempool.GetMinFee(maxmempool).GetFeePerK())));
1597+
ret.push_back(Pair("instantsendlocks", (int64_t)llmq::quorumInstantSendManager->GetInstantSendLockCount()));
15971598

15981599
return ret;
15991600
}
@@ -1611,6 +1612,7 @@ UniValue getmempoolinfo(const JSONRPCRequest& request)
16111612
" \"usage\": xxxxx, (numeric) Total memory usage for the mempool\n"
16121613
" \"maxmempool\": xxxxx, (numeric) Maximum memory usage for the mempool\n"
16131614
" \"mempoolminfee\": xxxxx (numeric) Minimum feerate (" + CURRENCY_UNIT + " per KB) for tx to be accepted\n"
1615+
" \"instantsendlocks\": xxxxx, (numeric) Number of unconfirmed instant send locks\n"
16141616
"}\n"
16151617
"\nExamples:\n"
16161618
+ HelpExampleCli("getmempoolinfo", "")

0 commit comments

Comments
 (0)