diff --git a/README.md b/README.md index db5ef17..2ceba2e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Please follow [private transaction tutorial](docs/pt_tutorial.md) Please follow [cpu mining tutorial](docs/cpu_mining_tutorial.md) ### GPU Mining Tutorial -Please follow [cpu mining tutorial](docs/gpu_mining_tutorial.md) +Please follow [gpu mining tutorial](docs/gpu_mining_tutorial.md) ## Issues Please submit any issue, bugs or feature requests via [here](https://github.com/origolab/origo-binary/issues/new). diff --git a/docs/cpu_mining_tutorial.md b/docs/cpu_mining_tutorial.md index 30fc299..905dbb1 100644 --- a/docs/cpu_mining_tutorial.md +++ b/docs/cpu_mining_tutorial.md @@ -6,7 +6,7 @@ We choose [EquiHash](https://en.wikipedia.org/wiki/Equihash) as our PoW algorith ### Stratum -Miner client connects to Origo node by [Stratum Protocol](https://en.bitcoinwiki.org/wiki/Stratum_mining_protocol). Default ip:port binding is `0.0.0.0:8008`. There are two major messages `subscribe` and `submit` for client to mine with node. +Miner client connects to Origo node by [Stratum Protocol](https://en.bitcoinwiki.org/wiki/Stratum_mining_protocol). Default ip:port binding is `0.0.0.0:6002`. There are two major messages `subscribe` and `submit` for client to mine with node. #### Subscribe @@ -106,8 +106,8 @@ python server.py If everything is correctly configured, you will see these logs: ``` -DEBUG:stratum-client:connecting to 127.0.0.1:8008... -INFO:stratum-client:connected to 127.0.0.1:8008 +DEBUG:stratum-client:connecting to 127.0.0.1:6002... +INFO:stratum-client:connected to 127.0.0.1:6002 DEBUG:stratum-client:mining.subscribe(()) took 0.572919845581ms Miner starting Nonce: 0 diff --git a/tools/miner/cpuminer-py/stratum/client.py b/tools/miner/cpuminer-py/stratum/client.py index 93c20d3..39bafca 100755 --- a/tools/miner/cpuminer-py/stratum/client.py +++ b/tools/miner/cpuminer-py/stratum/client.py @@ -12,7 +12,7 @@ PROTO_VERSION = "1.0" DEFAULT_HOST = '127.0.0.1' -DEFAULT_PORT = 8008 +DEFAULT_PORT = 6002 TIMEOUT = 5 @@ -281,4 +281,4 @@ def take(self): conn = Connection(1) result = conn.call("mining.subscribe")["result"] print("result ", result) - +