Skip to content

Commit a63a26f

Browse files
author
MarcoFalke
committed
Merge bitcoin#19585: rpc: RPCResult Type of MempoolEntryDescription should be OBJ.
ae4958b rpc: RPCResult Type of MempoolEntryDescription should be OBJ. If multiple entries are possible, wrapping Type should be OBJ_DYN. fixes bitcoin#19579 (Chris L) Pull request description: If multiple entries are possible, wrapping Type should be OBJ_DYN. fixes bitcoin#19579 Top commit has no ACKs. Tree-SHA512: 59cf9f6e9729a69a867e924d8306e0cd6b70a3d702fc5a4111345874bb1224ee51ac3f70cea61b25cfe6bde7f65cb02528d52acc20dda4eda692eddf34f217e8
2 parents a4a279b + ae4958b commit a63a26f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/rpc/blockchain.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ static UniValue getrawmempool(const JSONRPCRequest& request)
525525
{RPCResult::Type::STR_HEX, "", "The transaction id"},
526526
}},
527527
RPCResult{"for verbose = true",
528-
RPCResult::Type::OBJ, "", "",
528+
RPCResult::Type::OBJ_DYN, "", "",
529529
{
530-
{RPCResult::Type::OBJ_DYN, "transactionid", "", MempoolEntryDescription()},
530+
{RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
531531
}},
532532
},
533533
RPCExamples{
@@ -556,7 +556,7 @@ 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_DYN, "transactionid", "", MempoolEntryDescription()},
559+
RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
560560
},
561561
RPCExamples{
562562
HelpExampleCli("getmempoolancestors", "\"mytxid\"")
@@ -616,9 +616,9 @@ static UniValue getmempooldescendants(const JSONRPCRequest& request)
616616
RPCResult::Type::ARR, "", "",
617617
{{RPCResult::Type::STR_HEX, "", "The transaction id of an in-mempool descendant transaction"}}},
618618
RPCResult{"for verbose = true",
619-
RPCResult::Type::OBJ, "", "",
619+
RPCResult::Type::OBJ_DYN, "", "",
620620
{
621-
{RPCResult::Type::OBJ_DYN, "transactionid", "", MempoolEntryDescription()},
621+
{RPCResult::Type::OBJ, "transactionid", "", MempoolEntryDescription()},
622622
}},
623623
},
624624
RPCExamples{
@@ -674,7 +674,7 @@ static UniValue getmempoolentry(const JSONRPCRequest& request)
674674
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id (must be in mempool)"},
675675
},
676676
RPCResult{
677-
RPCResult::Type::OBJ_DYN, "", "", MempoolEntryDescription()},
677+
RPCResult::Type::OBJ, "", "", MempoolEntryDescription()},
678678
RPCExamples{
679679
HelpExampleCli("getmempoolentry", "\"mytxid\"")
680680
+ HelpExampleRpc("getmempoolentry", "\"mytxid\"")

0 commit comments

Comments
 (0)