mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
doc: Fix getmempoolancestor RPC result doc
This commit is contained in:
parent
c6532fa6c1
commit
333329dbda
1 changed files with 4 additions and 2 deletions
|
|
@ -556,7 +556,10 @@ static UniValue getmempoolancestors(const JSONRPCRequest& request)
|
||||||
RPCResult::Type::ARR, "", "",
|
RPCResult::Type::ARR, "", "",
|
||||||
{{RPCResult::Type::STR_HEX, "", "The transaction id of an in-mempool ancestor transaction"}}},
|
{{RPCResult::Type::STR_HEX, "", "The transaction id of an in-mempool ancestor transaction"}}},
|
||||||
RPCResult{"for verbose = true",
|
RPCResult{"for verbose = true",
|
||||||
RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
|
RPCResult::Type::OBJ_DYN, "", "",
|
||||||
|
{
|
||||||
|
{RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
RPCExamples{
|
RPCExamples{
|
||||||
HelpExampleCli("getmempoolancestors", "\"mytxid\"")
|
HelpExampleCli("getmempoolancestors", "\"mytxid\"")
|
||||||
|
|
@ -588,7 +591,6 @@ static UniValue getmempoolancestors(const JSONRPCRequest& request)
|
||||||
for (CTxMemPool::txiter ancestorIt : setAncestors) {
|
for (CTxMemPool::txiter ancestorIt : setAncestors) {
|
||||||
o.push_back(ancestorIt->GetTx().GetHash().ToString());
|
o.push_back(ancestorIt->GetTx().GetHash().ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return o;
|
return o;
|
||||||
} else {
|
} else {
|
||||||
UniValue o(UniValue::VOBJ);
|
UniValue o(UniValue::VOBJ);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue