@@ -259,11 +259,12 @@ UniValue prioritisetransaction(const JSONRPCRequest& request)
259
259
{
260
260
if (request.fHelp || request.params .size () != 3 )
261
261
throw std::runtime_error (
262
- " prioritisetransaction <txid> <priority delta > <fee delta>\n "
262
+ " prioritisetransaction <txid> <dummy value > <fee delta>\n "
263
263
" Accepts the transaction into mined blocks at a higher (or lower) priority\n "
264
264
" \n Arguments:\n "
265
265
" 1. \" txid\" (string, required) The transaction id.\n "
266
- " 2. priority_delta (numeric, optional) Fee-independent priority adjustment. Not supported, so must be zero or null.\n "
266
+ " 2. dummy (numeric, optional) API-Compatibility for previous API. Must be zero or null.\n "
267
+ " DEPRECATED. For forward compatibility use named arguments and omit this parameter.\n "
267
268
" 3. fee_delta (numeric, required) The fee value (in satoshis) to add (or subtract, if negative).\n "
268
269
" The fee is not actually paid, only the algorithm for selecting transactions into a block\n "
269
270
" considers the transaction as it would have paid a higher (or lower) fee.\n "
@@ -280,7 +281,7 @@ UniValue prioritisetransaction(const JSONRPCRequest& request)
280
281
CAmount nAmount = request.params [2 ].get_int64 ();
281
282
282
283
if (!(request.params [1 ].isNull () || request.params [1 ].get_real () == 0 )) {
283
- throw JSONRPCError (RPC_INVALID_PARAMETER, " Priority is not supported, and adjustment thereof must be zero ." );
284
+ throw JSONRPCError (RPC_INVALID_PARAMETER, " Priority is no longer supported, dummy argument to prioritisetransaction must be 0 ." );
284
285
}
285
286
286
287
mempool.PrioritiseTransaction (hash, nAmount);
@@ -964,7 +965,7 @@ static const CRPCCommand commands[] =
964
965
// --------------------- ------------------------ ----------------------- ----------
965
966
{ " mining" , " getnetworkhashps" , &getnetworkhashps, true , {" nblocks" ," height" } },
966
967
{ " mining" , " getmininginfo" , &getmininginfo, true , {} },
967
- { " mining" , " prioritisetransaction" , &prioritisetransaction, true , {" txid" ," priority_delta " ," fee_delta" } },
968
+ { " mining" , " prioritisetransaction" , &prioritisetransaction, true , {" txid" ," dummy " ," fee_delta" } },
968
969
{ " mining" , " getblocktemplate" , &getblocktemplate, true , {" template_request" } },
969
970
{ " mining" , " submitblock" , &submitblock, true , {" hexdata" ," parameters" } },
970
971
0 commit comments