strUsage+=HelpMessageGroup(_("Stratum server options:"));
strUsage+=HelpMessageOpt("-stratum",_("Enable stratum server (default: off)"));
strUsage+=HelpMessageOpt("-stratumbind=<addr>",_("Bind to given address to listen for Stratum work requests. Use [host]:port notation for IPv6. This option can be specified multiple times (default: bind to all interfaces)"));
strUsage+=HelpMessageOpt("-stratumaddress=<address>",_("Mining address to use when special address of 'x' is sent by miner (default: none)"));
strUsage+=HelpMessageOpt("-stratumbind=<ipaddr>",_("Bind to given address to listen for Stratum work requests. Use [host]:port notation for IPv6. This option can be specified multiple times (default: bind to all interfaces)"));
strUsage+=HelpMessageOpt("-stratumport=<port>",strprintf(_("Listen for Stratum work requests on <port> (default: %u or testnet: %u)"),BaseParams().StratumPort(),BaseParams().StratumPort()));
strUsage+=HelpMessageOpt("-stratumallowip=<ip>",_("Allow Stratum work requests from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times"));
throwJSONRPCError(RPC_INVALID_REQUEST,"Stratum client not authorized. Use mining.authorize first, with a Hush R.. address as the username.");
conststd::stringmsg=strprintf("%s: Unable to get work unit, client not authorized! Use address 'x' to mine to the default address",__func__);
LogPrint("stratum","%s\n",msg);
throwJSONRPCError(RPC_INVALID_REQUEST,"Stratum client not authorized. Use mining.authorize first, with a Hush R.. address as the username or 'x' to mine to the default address.");