duino-coin pools, but in rust
There's three ways to build and run a pool:
- Deploying a production pool:
Build the pool viacargo build --releaseand grab the executable fromtarget/release - Running a local (testing) pool:
Run./build-local.shor usecargo build --profile localand grab the executable fromtarget/local - Running a benchmark pool (sets the nonce to stay at one; used to make it easier for test-miners to submit as many
shares as possible)
Run./build-bench.shor usecargo build --profile local --features benchand grab the executable fromtarget/local
Keep in mind, that only the production pool connects to and syncs with the master-server. The other two options are entirely local and therefore isolated.
(currently untested)
Config and sync data live in the pool-config and pool-data volumes. Inside a container the image is the update
mechanism, so keep auto_update off. The image has no shell or firewall tools either, so leave firewall_cmd,
restart_script and update_restart_script empty and set base_sync_folder to ./dashboard/.
The first start writes a default config.json into pool-config and exits until poolName is set. Copy your own
config in, the pool picks it up on its next restart:
docker compose cp config.json pool:/app/config/config.json-
Building it yourself:
docker compose up -d --buildbuilds the checked out tree.POOL_BUILD=release POOL_TAG=v0.2.1 docker compose up -d --builduses that signed release instead and refuses to build if its signature or hashes don't check out. -
Pulling the published image:
Every signed release is published asghcr.io/duino-coin/duco-pools-rs:<tag>(and:latest) for amd64 and arm64. It's built from the same release assets after their signature has been checked, and the signed release manifest is attached to the image. Verify an image before running it:RELEASE_KEY_FINGERPRINT=SHA256:JIF3znWiNSXyMv9blziUtAdRb+on4a/4hN9q6NGEPdg ./docker-verify.sh ghcr.io/duino-coin/duco-pools-rs:v0.2.2
This checks that the image comes from this repository's
docker.yml, that the attached manifest is signed by the release key and that the binary of every platform in the image is the one that manifest lists. It needscosign(v3),docker(orDOCKER=podman),jq,ssh-keygenandsha256sum. Compare the fingerprint against one you got from somewhere other than this repository. Then run the image by the digest the script prints, with the same settings ascompose.yamlandimage: ghcr.io/duino-coin/duco-pools-rs@sha256:...in place of thebuildsection.
Use network_mode: host on Linux, otherwise miners may all show up with the same IP and a single ban hits everyone.
server_endpoint must be the master server's IP, otherwise syncing won't work.
- implement ngrok (tbd)
Copyright © 2026 profpandaa from the Duino-Coin team.
This project is AGPL-3.0 licensed.