Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | obj.push_back(Pair("blockprioritypercentage", | ||||
DEFAULT_BLOCK_PRIORITY_PERCENTAGE)))); | DEFAULT_BLOCK_PRIORITY_PERCENTAGE)))); | ||||
obj.push_back(Pair("errors", GetWarnings("statusbar"))); | obj.push_back(Pair("errors", GetWarnings("statusbar"))); | ||||
obj.push_back(Pair("networkhashps", getnetworkhashps(config, request))); | obj.push_back(Pair("networkhashps", getnetworkhashps(config, request))); | ||||
obj.push_back(Pair("pooledtx", uint64_t(mempool.size()))); | obj.push_back(Pair("pooledtx", uint64_t(mempool.size()))); | ||||
obj.push_back(Pair("chain", Params().NetworkIDString())); | obj.push_back(Pair("chain", Params().NetworkIDString())); | ||||
return obj; | return obj; | ||||
} | } | ||||
// NOTE: Unlike wallet RPC (which use BCC values), mining RPCs follow GBT (BIP | // NOTE: Unlike wallet RPC (which use BCH values), mining RPCs follow GBT (BIP | ||||
// 22) in using satoshi amounts | // 22) in using satoshi amounts | ||||
static UniValue prioritisetransaction(const Config &config, | static UniValue prioritisetransaction(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp || request.params.size() != 3) { | if (request.fHelp || request.params.size() != 3) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"prioritisetransaction <txid> <priority delta> <fee delta>\n" | "prioritisetransaction <txid> <priority delta> <fee delta>\n" | ||||
"Accepts the transaction into mined blocks at a higher (or lower) " | "Accepts the transaction into mined blocks at a higher (or lower) " | ||||
"priority\n" | "priority\n" | ||||
▲ Show 20 Lines • Show All 687 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() != 1) { | ||||
"confirmation within nblocks blocks if possible and return the " | "confirmation within nblocks blocks if possible and return the " | ||||
"number of blocks\n" | "number of blocks\n" | ||||
"for which the estimate is valid.\n" | "for which the estimate is valid.\n" | ||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. nblocks (numeric)\n" | "1. nblocks (numeric)\n" | ||||
"\nResult:\n" | "\nResult:\n" | ||||
"{\n" | "{\n" | ||||
" \"feerate\" : x.x, (numeric) estimate fee-per-kilobyte (in " | " \"feerate\" : x.x, (numeric) estimate fee-per-kilobyte (in " | ||||
"BCC)\n" | "BCH)\n" | ||||
" \"blocks\" : n (numeric) block number where estimate " | " \"blocks\" : n (numeric) block number where estimate " | ||||
"was found\n" | "was found\n" | ||||
"}\n" | "}\n" | ||||
"\n" | "\n" | ||||
"A negative value is returned if not enough transactions and " | "A negative value is returned if not enough transactions and " | ||||
"blocks\n" | "blocks\n" | ||||
"have been observed to make an estimate for any number of blocks.\n" | "have been observed to make an estimate for any number of blocks.\n" | ||||
"However it will not return a value below the mempool reject fee.\n" | "However it will not return a value below the mempool reject fee.\n" | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |