Skip to content

Commit

Permalink
update some ports
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Fang committed Oct 1, 2019
1 parent 815c34b commit 787ef19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
6 changes: 3 additions & 3 deletions docs/cpu_mining_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tools/miner/cpuminer-py/stratum/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
PROTO_VERSION = "1.0"

DEFAULT_HOST = '127.0.0.1'
DEFAULT_PORT = 8008
DEFAULT_PORT = 6002

TIMEOUT = 5

Expand Down Expand Up @@ -281,4 +281,4 @@ def take(self):
conn = Connection(1)
result = conn.call("mining.subscribe")["result"]
print("result ", result)

1 comment on commit 787ef19

@samsanccie
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Frank, I am trying to run test node on Windows. when i check the https://testnet.ogoscan.io, why I see nothing other than your single test node ( 0x7a93B005d71D402ff5b88F812e0e04Db7E2FB2f4 )? can you clarify. thanks in advance:)

Please sign in to comment.