Merge #19765: doc: Fix getmempoolancestors RPC result doc
333329dbdadoc: Fix getmempoolancestor RPC result doc (MarcoFalke) Pull request description: ACKs for top commit: laanwj: ACK333329dbdaTree-SHA512: 30a7568ec15d1af0c484b4d479e14ec3609a01b76f17f8285688b0c5e5b0480926bbf6f651da91193b66fd752e83e9707e4b08c52b69f8c670c430da84713359
This commit is contained in:
1 file changed
+4
-2
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user