aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2024-01-22 15:45:43 +0000
committerstickies-v <stickies-v@protonmail.com>2024-05-07 00:21:44 +0100
commitf9ece258aa868d0776caa86b94e71ba05a9b287e (patch)
treebe448db197f7d3f36bee49934143b364794ea8df /src/rpc
parent17f74512f0d19cb452ed79a4bff5a222fcdb53c4 (diff)
downloadbitcoin-f9ece258aa868d0776caa86b94e71ba05a9b287e.tar.xz
doc: rpc: submitpackage takes sorted array
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/mempool.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp
index c1753a1f6e..a3452c7886 100644
--- a/src/rpc/mempool.cpp
+++ b/src/rpc/mempool.cpp
@@ -815,13 +815,14 @@ static RPCHelpMan submitpackage()
{
return RPCHelpMan{"submitpackage",
"Submit a package of raw transactions (serialized, hex-encoded) to local node.\n"
- "The package must consist of a child with its parents, and none of the parents may depend on one another.\n"
"The package will be validated according to consensus and mempool policy rules. If any transaction passes, it will be accepted to mempool.\n"
"This RPC is experimental and the interface may be unstable. Refer to doc/policy/packages.md for documentation on package policies.\n"
"Warning: successful submission does not mean the transactions will propagate throughout the network.\n"
,
{
- {"package", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of raw transactions.",
+ {"package", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of raw transactions.\n"
+ "The package must solely consist of a child and its parents. 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.",
{
{"rawtx", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, ""},
},