Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() != 3) { | ||||
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"); | ||||
Amount nAmount = request.params[2].get_int64() * SATOSHI; | Amount nAmount = request.params[2].get_int64() * SATOSHI; | ||||
g_mempool.PrioritiseTransaction(hash, request.params[0].get_str(), | g_mempool.PrioritiseTransaction(hash, request.params[1].get_real(), | ||||
request.params[1].get_real(), nAmount); | 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 | ||||
static UniValue BIP22ValidationResult(const Config &config, | static UniValue BIP22ValidationResult(const Config &config, | ||||
const CValidationState &state) { | const CValidationState &state) { | ||||
if (state.IsValid()) { | if (state.IsValid()) { | ||||
▲ Show 20 Lines • Show All 498 Lines • Show Last 20 Lines |