[doc] correct topology requirements in submitpackage helptext
What changed, and why it matters
This commit only updates the help text for the submitpackage RPC command. It corrects the documentation to match the actual rules for what transactions can be submitted together. No code behavior changed, and there is no security issue.
No action needed. This is a non-security documentation correction.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change is a documentation-only edit in src/rpc/mempool.cpp. It clarifies that submitpackage accepts a single transaction, or a child with some/all/none of its unconfirmed parents, and that parents already in the mempool need not be included. No logic, validation, or mempool policy code was modified.
Changed components
src/rpc/mempool.cppInspect captured patch +3 / −2
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp
index 147af369..cb1ea5dd 100644
--- a/src/rpc/mempool.cpp
+++ b/src/rpc/mempool.cpp
@@ -936,8 +936,9 @@ static RPCHelpMan submitpackage()
,
{
{"package", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of raw transactions.\n"
- "The package must solely consist of a child transaction and all of its unconfirmed parents, if any. None of the parents may depend on each other.\n"
- "The package must be topologically sorted, with the child being the last element in the array.",
+ "The package must consist of a transaction with (some, all, or none of) its unconfirmed parents. A single transaction is permitted.\n"
+ "None of the parents may depend on each other. Parents that are already in mempool do not need to be present in the package.\n"
+ "The package must be topologically sorted, with the child being the last element in the array if there are multiple elements.",
{
{"rawtx", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, ""},
},
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.