Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 263 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
// NOTE: Unlike wallet RPC (which use BCH 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> <dummy value> <fee delta>\n" | "prioritisetransaction \"txid\" dummy 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" | ||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. \"txid\" (string, required) The transaction id.\n" | "1. \"txid\" (string, required) The transaction id.\n" | ||||
"2. dummy (numeric, optional) API-Compatibility for " | "2. dummy (numeric, optional) API-Compatibility for " | ||||
"previous API. Must be zero or null.\n" | "previous API. Must be zero or null.\n" | ||||
" DEPRECATED. For forward compatibility use named " | " DEPRECATED. For forward compatibility use named " | ||||
"arguments and omit this parameter.\n" | "arguments and omit this parameter.\n" | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | static UniValue BIP22ValidationResult(const Config &config, | ||||
// Should be impossible. | // Should be impossible. | ||||
return "valid?"; | return "valid?"; | ||||
} | } | ||||
static UniValue getblocktemplate(const Config &config, | static UniValue getblocktemplate(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp || request.params.size() > 1) { | if (request.fHelp || request.params.size() > 1) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"getblocktemplate ( TemplateRequest )\n" | "getblocktemplate ( \"template_request\" )\n" | ||||
"\nIf the request parameters include a 'mode' key, that is used to " | "\nIf the request parameters include a 'mode' key, that is used to " | ||||
"explicitly select between the default 'template' request or a " | "explicitly select between the default 'template' request or a " | ||||
"'proposal'.\n" | "'proposal'.\n" | ||||
"It returns data needed to construct a block to work on.\n" | "It returns data needed to construct a block to work on.\n" | ||||
"For full specification, see BIPs 22, 23, 9, and 145:\n" | "For full specification, see BIPs 22, 23, 9, and 145:\n" | ||||
" " | " " | ||||
"https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki\n" | "https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki\n" | ||||
" " | " " | ||||
▲ Show 20 Lines • Show All 498 Lines • Show Last 20 Lines |