Skip to content

Commit f9ece25

Browse files
committed
doc: rpc: submitpackage takes sorted array
1 parent 17f7451 commit f9ece25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rpc/mempool.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,13 +815,14 @@ static RPCHelpMan submitpackage()
815815
{
816816
return RPCHelpMan{"submitpackage",
817817
"Submit a package of raw transactions (serialized, hex-encoded) to local node.\n"
818-
"The package must consist of a child with its parents, and none of the parents may depend on one another.\n"
819818
"The package will be validated according to consensus and mempool policy rules. If any transaction passes, it will be accepted to mempool.\n"
820819
"This RPC is experimental and the interface may be unstable. Refer to doc/policy/packages.md for documentation on package policies.\n"
821820
"Warning: successful submission does not mean the transactions will propagate throughout the network.\n"
822821
,
823822
{
824-
{"package", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of raw transactions.",
823+
{"package", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of raw transactions.\n"
824+
"The package must solely consist of a child and its parents. None of the parents may depend on each other.\n"
825+
"The package must be topologically sorted, with the child being the last element in the array.",
825826
{
826827
{"rawtx", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, ""},
827828
},

0 commit comments

Comments
 (0)