Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 512 Lines • ▼ Show 20 Lines | static UniValue getmininginfo(const Config &config, | ||||
obj.pushKV("difficulty", double(GetDifficulty(::ChainActive().Tip()))); | obj.pushKV("difficulty", double(GetDifficulty(::ChainActive().Tip()))); | ||||
obj.pushKV("networkhashps", getnetworkhashps(config, request)); | obj.pushKV("networkhashps", getnetworkhashps(config, request)); | ||||
obj.pushKV("pooledtx", uint64_t(mempool.size())); | obj.pushKV("pooledtx", uint64_t(mempool.size())); | ||||
obj.pushKV("chain", config.GetChainParams().NetworkIDString()); | obj.pushKV("chain", config.GetChainParams().NetworkIDString()); | ||||
obj.pushKV("warnings", GetWarnings(false).original); | obj.pushKV("warnings", GetWarnings(false).original); | ||||
return obj; | return obj; | ||||
} | } | ||||
// NOTE: Unlike wallet RPC (which use BCH values), mining RPCs follow GBT (BIP | // NOTE: Unlike wallet RPC (which use XEC 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) { | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"prioritisetransaction", | "prioritisetransaction", | ||||
"Accepts the transaction into mined blocks at a higher " | "Accepts the transaction into mined blocks at a higher " | ||||
"(or lower) priority\n", | "(or lower) priority\n", | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 642 Lines • Show Last 20 Lines |