Skip to content

Commit 333329d

Browse files
author
MarcoFalke
committed
doc: Fix getmempoolancestor RPC result doc
1 parent c6532fa commit 333329d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rpc/blockchain.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,10 @@ static UniValue getmempoolancestors(const JSONRPCRequest& request)
556556
RPCResult::Type::ARR, "", "",
557557
{{RPCResult::Type::STR_HEX, "", "The transaction id of an in-mempool ancestor transaction"}}},
558558
RPCResult{"for verbose = true",
559-
RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
559+
RPCResult::Type::OBJ_DYN, "", "",
560+
{
561+
{RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
562+
}},
560563
},
561564
RPCExamples{
562565
HelpExampleCli("getmempoolancestors", "\"mytxid\"")
@@ -588,7 +591,6 @@ static UniValue getmempoolancestors(const JSONRPCRequest& request)
588591
for (CTxMemPool::txiter ancestorIt : setAncestors) {
589592
o.push_back(ancestorIt->GetTx().GetHash().ToString());
590593
}
591-
592594
return o;
593595
} else {
594596
UniValue o(UniValue::VOBJ);

0 commit comments

Comments
 (0)