Skip to content

Commit 44f66d2

Browse files
committed
Merge #19765: doc: Fix getmempoolancestors RPC result doc
333329d doc: Fix getmempoolancestor RPC result doc (MarcoFalke) Pull request description: ACKs for top commit: laanwj: ACK 333329d Tree-SHA512: 30a7568ec15d1af0c484b4d479e14ec3609a01b76f17f8285688b0c5e5b0480926bbf6f651da91193b66fd752e83e9707e4b08c52b69f8c670c430da84713359
2 parents e9b3012 + 333329d commit 44f66d2

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)