Skip to content

Commit

Permalink
Add usage clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ Rybarczyk committed Sep 30, 2024
1 parent c1ee625 commit ef128c8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions roles/test-utils/mining-device/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@ Options:
-V, --version Print version
```

Usage example:
## Example
1. Start a pool. The hosted example in the [`pool`](https://github.com/stratum-mining/stratum/tree/main/roles/pool)
crate can be started with:

```sh
cd roles/pool
cargo run -- -c config-examples/pool-config-hosted-tp-example.toml
```
cargo run --release -- --address-pool 127.0.0.1:20000 --id-device device_id::SOLO::bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh

2. Start the mining-device, making sure the port is the same as the `pool`'s `listen_address` port.

```sh
cd roles/test-util/mining-device
cargo run -- --address-pool 127.0.0.1:34254 --id-device device_id::SOLO::bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh
```

0 comments on commit ef128c8

Please sign in to comment.