Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
"", | "", | ||||
"hashes of blocks generated", | "hashes of blocks generated", | ||||
{ | { | ||||
{RPCResult::Type::STR_HEX, "", "blockhash"}, | {RPCResult::Type::STR_HEX, "", "blockhash"}, | ||||
}}, | }}, | ||||
RPCExamples{ | RPCExamples{ | ||||
"\nGenerate 11 blocks to myaddress\n" + | "\nGenerate 11 blocks to myaddress\n" + | ||||
HelpExampleCli("generatetoaddress", "11 \"myaddress\"") + | HelpExampleCli("generatetoaddress", "11 \"myaddress\"") + | ||||
"If you are running the Bitcoin ABC wallet, you can get a new " | "If you are using the " PACKAGE_NAME " wallet, you can " | ||||
"address to send the newly generated bitcoin to with:\n" + | "get a new address to send the newly generated bitcoin to with:\n" + | ||||
HelpExampleCli("getnewaddress", "")}, | HelpExampleCli("getnewaddress", "")}, | ||||
} | } | ||||
.Check(request); | .Check(request); | ||||
int nGenerate = request.params[0].get_int(); | int nGenerate = request.params[0].get_int(); | ||||
uint64_t nMaxTries = 1000000; | uint64_t nMaxTries = 1000000; | ||||
if (!request.params[2].isNull()) { | if (!request.params[2].isNull()) { | ||||
nMaxTries = request.params[2].get_int64(); | nMaxTries = request.params[2].get_int64(); | ||||
▲ Show 20 Lines • Show All 858 Lines • Show Last 20 Lines |