diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-08-19 10:41:03 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-08-19 10:41:27 +0200 |
commit | 333329dbda423b00098ec9f8702d75d24468c56e (patch) | |
tree | 75638cfd111a6da1eec010fb3ea68d5572b305cb | |
parent | c6532fa6c14d3cea5941cff9411937db9a8d5f1a (diff) |
doc: Fix getmempoolancestor RPC result doc
-rw-r--r-- | src/rpc/blockchain.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 868ff88d08..4879ef7549 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -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); |