@@ -258,31 +258,28 @@ UniValue getmininginfo(const JSONRPCRequest& request)
258258// NOTE: Unlike wallet RPC (which use BTC values), mining RPCs follow GBT (BIP 22) in using satoshi amounts
259259UniValue prioritisetransaction (const JSONRPCRequest& request)
260260{
261- if (request.fHelp || request.params .size () != 3 )
261+ if (request.fHelp || request.params .size () != 2 )
262262 throw runtime_error (
263- " prioritisetransaction <txid> <priority delta> < fee delta>\n "
263+ " prioritisetransaction <txid> <fee delta>\n "
264264 " Accepts the transaction into mined blocks at a higher (or lower) priority\n "
265265 " \n Arguments:\n "
266266 " 1. \" txid\" (string, required) The transaction id.\n "
267- " 2. priority_delta (numeric, required) The priority to add or subtract.\n "
268- " The transaction selection algorithm considers the tx as it would have a higher priority.\n "
269- " (priority of a transaction is calculated: coinage * value_in_satoshis / txsize) \n "
270- " 3. fee_delta (numeric, required) The fee value (in satoshis) to add (or subtract, if negative).\n "
267+ " 2. fee_delta (numeric, required) The fee value (in satoshis) to add (or subtract, if negative).\n "
271268 " The fee is not actually paid, only the algorithm for selecting transactions into a block\n "
272269 " considers the transaction as it would have paid a higher (or lower) fee.\n "
273270 " \n Result:\n "
274271 " true (boolean) Returns true\n "
275272 " \n Examples:\n "
276- + HelpExampleCli (" prioritisetransaction" , " \" txid\" 0.0 10000" )
277- + HelpExampleRpc (" prioritisetransaction" , " \" txid\" , 0.0, 10000" )
273+ + HelpExampleCli (" prioritisetransaction" , " \" txid\" 10000" )
274+ + HelpExampleRpc (" prioritisetransaction" , " \" txid\" , 10000" )
278275 );
279276
280277 LOCK (cs_main);
281278
282279 uint256 hash = ParseHashStr (request.params [0 ].get_str (), " txid" );
283- CAmount nAmount = request.params [2 ].get_int64 ();
280+ CAmount nAmount = request.params [1 ].get_int64 ();
284281
285- mempool.PrioritiseTransaction (hash, request. params [ 1 ]. get_real (), nAmount);
282+ mempool.PrioritiseTransaction (hash, nAmount);
286283 return true ;
287284}
288285
@@ -853,7 +850,7 @@ static const CRPCCommand commands[] =
853850 // --------------------- ------------------------ ----------------------- ----------
854851 { " mining" , " getnetworkhashps" , &getnetworkhashps, true , {" nblocks" ," height" } },
855852 { " mining" , " getmininginfo" , &getmininginfo, true , {} },
856- { " mining" , " prioritisetransaction" , &prioritisetransaction, true , {" txid" ," priority_delta " , " fee_delta" } },
853+ { " mining" , " prioritisetransaction" , &prioritisetransaction, true , {" txid" ," fee_delta" } },
857854 { " mining" , " getblocktemplate" , &getblocktemplate, true , {" template_request" } },
858855 { " mining" , " submitblock" , &submitblock, true , {" hexdata" ," parameters" } },
859856
0 commit comments