mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 19:12:33 +02:00
doc: Fix getmempoolancestor RPC result doc
This commit is contained in:
@@ -556,7 +556,10 @@ static UniValue getmempoolancestors(const JSONRPCRequest& request)
|
||||
RPCResult::Type::ARR, "", "",
|
||||
{{RPCResult::Type::STR_HEX, "", "The transaction id of an in-mempool ancestor transaction"}}},
|
||||
RPCResult{"for verbose = true",
|
||||
RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
|
||||
RPCResult::Type::OBJ_DYN, "", "",
|
||||
{
|
||||
{RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
|
||||
}},
|
||||
},
|
||||
RPCExamples{
|
||||
HelpExampleCli("getmempoolancestors", "\"mytxid\"")
|
||||
@@ -588,7 +591,6 @@ static UniValue getmempoolancestors(const JSONRPCRequest& request)
|
||||
for (CTxMemPool::txiter ancestorIt : setAncestors) {
|
||||
o.push_back(ancestorIt->GetTx().GetHash().ToString());
|
||||
}
|
||||
|
||||
return o;
|
||||
} else {
|
||||
UniValue o(UniValue::VOBJ);
|
||||
|
Reference in New Issue
Block a user