Project 08 · Build guide Running
A public Bitcoin Cash mining pool
My Bitaxe mines Bitcoin Cash against my own full node. Now anyone can point a miner at the same setup: a solo pool where a found block pays the miner directly, for a 1% fee.
For miners
Mine on the pool
| Setting | Value |
|---|---|
| Stratum URL | stratum+tcp://pool.kellysworkbench.com:3333 |
| Username | Your BCH address in legacy format (starts with 1 or 3). Add .name to tell miners apart, like 1YourAddress.bitaxe |
| Password | Anything, such as x |
| Live stats | pool.kellysworkbench.com |
| Starting difficulty | 1000 (it adjusts to your miner) |
Use the legacy address. The newer bitcoincash:q… format is refused. Any BCH wallet can show your address in legacy form; it's the same wallet, spelled differently.
On a Bitaxe: open AxeOS, go to Pool settings, enter the URL and port above, your address as the user, and save.
The fine print
Fee and payouts
- Fee: 1%, taken only from a block you find. No block, no fee.
- Payout: solo. If your miner finds a block, the block itself pays 99% to your address. No balances, no withdrawals, and the pool never holds anyone's coins.
- It's a lottery. A small miner can go a very long time without a block, or never find one.
- Hobby pool. No uptime guarantee. If it's down, your miner's fallback pool takes over.
The setup
How it's built
The heavy part, a full Bitcoin Cash node with about 250 GB of blockchain, stays on the closet server at home. A small rented server faces the internet instead, so my home address is never exposed to miners.
| Piece | Where | Job |
|---|---|---|
| Miners | Anywhere | Connect to pool.kellysworkbench.com on port 3333 |
| ckpool (solo mode) | VPS in Chicago | Hands out work, checks shares, builds the block that pays the miner and the 1% fee |
| WireGuard tunnel | VPS ↔ home | Private link, about 20 ms. Home dials out, so the router has no open ports |
| Bitcoin Cash Node | Closet server | Block templates over RPC, and instant new-block alerts over ZMQ |
The tunnel only lets the VPS reach two things at home: the node's RPC port and its block-alert port. Nothing else on my network is reachable through it.
Hardware and software
What it runs on
| Part | Details |
|---|---|
| VPS | Cherry Servers Cloud VPS 1: 1 vCPU, 1 GB RAM, 20 GB SSD, Chicago, about $3.50 a month. They confirmed in writing that a pool server is fine, since no mining happens on it |
| Operating system | Ubuntu 24.04, SSH key login only, firewall open for SSH, WireGuard and stratum only, fail2ban, automatic security updates |
| Pool software | ckpool by Con Kolivas, built from source, run by systemd |
| Tunnel | WireGuard on the VPS; the linuxserver/wireguard container on the home server |
| Node | Bitcoin Cash Node in Docker on the closet server |
Step by step
Build steps
- Pick a host that allows it. Many VPS companies ban anything crypto. I asked before paying and kept the answer.
- Lock the VPS down first. A normal user with my SSH key, root and password logins off, firewall on, updates on, then a reboot.
- Build the tunnel. WireGuard on the VPS listens; a WireGuard container on the home server dials out to it and forwards only the node's RPC and ZMQ ports.
- Build ckpool from source on the VPS, point it at the node through the tunnel, and run it as a service.
- Add the fee. ckpool's optional “donation” percentage normally goes to its author. I changed that address to mine and set it to 1%.
- Test like a miner. Connect from outside, ask for work, and decode the block it hands out to check exactly who it pays.
Where it stands
Progress and lessons
Done so far
- VPS running and hardened; tunnel up; ckpool live on port 3333.
- 1% fee in place, checked in a real block template.
- Newer-format addresses blocked after testing showed they'd pay nobody.
Lessons learned
- Test the payout, not just the login. ckpool accepted a CashAddr without its prefix, but the block it built paid a scrambled address. Only decoding the block template showed it. ckpool was written for Bitcoin and doesn't understand Bitcoin Cash's newer address format.
- The donation address built into ckpool is a Bitcoin address, so on Bitcoin Cash the setting quietly does nothing until it's changed.
- The fee and the address check are changes to ckpool's code. Rebuilding ckpool from fresh source removes them, so they're kept in a script that puts them back.