Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() != 3) { | ||||
"\nExamples:\n" + | "\nExamples:\n" + | ||||
HelpExampleCli("prioritisetransaction", "\"txid\" 0.0 10000") + | HelpExampleCli("prioritisetransaction", "\"txid\" 0.0 10000") + | ||||
HelpExampleRpc("prioritisetransaction", "\"txid\", 0.0, 10000")); | HelpExampleRpc("prioritisetransaction", "\"txid\", 0.0, 10000")); | ||||
} | } | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
uint256 hash = ParseHashStr(request.params[0].get_str(), "txid"); | uint256 hash = ParseHashStr(request.params[0].get_str(), "txid"); | ||||
CAmount nAmount = request.params[2].get_int64(); | Amount nAmount = request.params[2].get_int64(); | ||||
mempool.PrioritiseTransaction(hash, request.params[0].get_str(), | mempool.PrioritiseTransaction(hash, request.params[0].get_str(), | ||||
request.params[1].get_real(), nAmount); | request.params[1].get_real(), nAmount); | ||||
return true; | return true; | ||||
} | } | ||||
// NOTE: Assumes a conclusive result; if result is inconclusive, it must be | // NOTE: Assumes a conclusive result; if result is inconclusive, it must be | ||||
// handled by caller | // handled by caller | ||||
▲ Show 20 Lines • Show All 755 Lines • Show Last 20 Lines |