Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 750 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() < 1 || | ||||
"submitblock", | "submitblock", | ||||
"\nAttempts to submit new block to network.\n" | "\nAttempts to submit new block to network.\n" | ||||
"See https://en.bitcoin.it/wiki/BIP_0022 for full " | "See https://en.bitcoin.it/wiki/BIP_0022 for full " | ||||
"specification.\n", | "specification.\n", | ||||
{ | { | ||||
{"hexdata", RPCArg::Type::STR_HEX, /* opt */ false, | {"hexdata", RPCArg::Type::STR_HEX, /* opt */ false, | ||||
/* default_val */ "", "the hex-encoded block data to submit"}, | /* default_val */ "", "the hex-encoded block data to submit"}, | ||||
{"dummy", RPCArg::Type::STR, /* opt */ true, | {"dummy", RPCArg::Type::STR, /* opt */ true, | ||||
/* default_val */ "", | /* default_val */ "ignored", | ||||
"dummy value, for compatibility with BIP22. This " | "dummy value, for compatibility with BIP22. This value is " | ||||
"value is ignored."}, | "ignored."}, | ||||
}, | }, | ||||
RPCResults{}, | RPCResults{}, | ||||
RPCExamples{HelpExampleCli("submitblock", "\"mydata\"") + | RPCExamples{HelpExampleCli("submitblock", "\"mydata\"") + | ||||
HelpExampleRpc("submitblock", "\"mydata\"")}, | HelpExampleRpc("submitblock", "\"mydata\"")}, | ||||
} | } | ||||
.ToString()); | .ToString()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |