From d3a721ad8c7713a7997ac58e1363c20f9a9043a3 Mon Sep 17 00:00:00 2001 From: Leon1777 <168653957+Leon1777@users.noreply.github.com> Date: Sun, 25 Aug 2024 15:15:59 +0200 Subject: [PATCH] improve help text for `karlsend-address` arg - add missing devnet arg in readme --- README.md | 3 ++- src/cli.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index deb4568..7628092 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,10 @@ OPTIONS: --opencl-workload Ratio of nonces to GPU possible parrallel run in OpenCL [default: 512] --opencl-workload-absolute The values given by workload are not ratio, but absolute number of nonces in OpenCL [default: false] -p, --port karlsend port [default: Mainnet = 42110, Testnet = 42210, Devnet = 42610] - -s, --karlsend-address The IP address, pool address, or node address of the karlsend instance [default: 127.0.0.1] + -s, --karlsend-address IP, pool, or node address of the Karlsend instance. Use stratum+tcp:// for stratum or grpc:// for Karlsend (default: grpc://127.0.0.1) -t, --threads Amount of CPU miner threads to launch [default: 0] --testnet Use testnet instead of mainnet [default: false] + --devnet Use devnet instead of mainnet [default: false] ``` To start mining, you just need to run the following: diff --git a/src/cli.rs b/src/cli.rs index 35ea37b..92b4fce 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -16,7 +16,7 @@ pub struct Opt { short = 's', long = "karlsend-address", default_value = "127.0.0.1", - help = "The IP address, pool address, or node address of the karlsend instance" + help = "Specify the IP, pool, or node address of the Karlsend instance. Use stratum+tcp:// for stratum or grpc:// for Karlsend (default: grpc://127.0.0.1)" )] pub karlsend_address: String,