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