@@ -819,12 +819,11 @@ static RPCHelpMan savemempool()
819
819
static RPCHelpMan submitpackage ()
820
820
{
821
821
return RPCHelpMan{" submitpackage" ,
822
- " Submit a package of raw transactions (serialized, hex-encoded) to local node (-regtest only) .\n "
822
+ " Submit a package of raw transactions (serialized, hex-encoded) to local node.\n "
823
823
" The package must consist of a child with its parents, and none of the parents may depend on one another.\n "
824
824
" The package will be validated according to consensus and mempool policy rules. If all transactions pass, they will be accepted to mempool.\n "
825
825
" This RPC is experimental and the interface may be unstable. Refer to doc/policy/packages.md for documentation on package policies.\n "
826
- " Warning: until package relay is in use, successful submission does not mean the transaction will propagate to other nodes on the network.\n "
827
- " Currently, each transaction is broadcasted individually after submission, which means they must meet other nodes' feerate requirements alone.\n "
826
+ " Warning: successful submission does not mean the transactions will propagate throughout the network.\n "
828
827
,
829
828
{
830
829
{" package" , RPCArg::Type::ARR, RPCArg::Optional::NO, " An array of raw transactions." ,
@@ -863,9 +862,6 @@ static RPCHelpMan submitpackage()
863
862
},
864
863
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
865
864
{
866
- if (Params ().GetChainType () != ChainType::REGTEST) {
867
- throw std::runtime_error (" submitpackage is for regression testing (-regtest mode) only" );
868
- }
869
865
const UniValue raw_transactions = request.params [0 ].get_array ();
870
866
if (raw_transactions.size () < 1 || raw_transactions.size () > MAX_PACKAGE_COUNT) {
871
867
throw JSONRPCError (RPC_INVALID_PARAMETER,
@@ -987,7 +983,7 @@ void RegisterMempoolRPCCommands(CRPCTable& t)
987
983
{" blockchain" , &getrawmempool},
988
984
{" blockchain" , &importmempool},
989
985
{" blockchain" , &savemempool},
990
- {" hidden " , &submitpackage},
986
+ {" rawtransactions " , &submitpackage},
991
987
};
992
988
for (const auto & c : commands) {
993
989
t.appendCommand (c.name , &c);
0 commit comments