Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Getting Started

Three paths to a running pool:

  1. Docker — multi-arch image, runs on an Umbrel box, a NAS, or any Linux/macOS host
  2. Native Binary — .deb / .rpm / .dmg / .AppImage (no .msi for now) for bare-metal hosts and Raspberry Pi 5
  3. From Source — for development or verification

Whichever path you choose, you need a running Bitcoin Core (≥27.0 recommended) with the getblocktemplate RPC and ZMQ block-notify enabled. GBT is the default template source. Bitcoin Core ≥31 additionally offers an experimental Cap’n Proto IPC interface, which the pool can use as an alternative template source to speed up template retrieval. Set [node].template_source = "ipc" to force it, or "auto" to let the pool switch between GBT and IPC at runtime, in both directions, without a restart (since v1.48; containers can set DVB_WARPPOOL_TEMPLATE_SOURCE=auto) — it starts on IPC when the socket answers, moves to IPC once a socket that came up later delivers, and back to GBT when IPC stops delivering; see Configuration Reference.

Docker

docker run -d \
  --name warppool \
  --restart unless-stopped \
  -p 18334:18334 \
  -p 3333:3333 \
  -v ~/.warppool:/data \
  -v ~/.warppool/config:/config \
  git.warppool.org/dvb-projekt/dvb-warppool:latest

The daemon reads /config/config.toml and /config/secrets.toml and keeps its database in /data. Both must be host folders: without the /config volume the daemon finds no config and does not start. On Linux the container runs as uid 1000, so create the folders first and hand them over once: mkdir -p ~/.warppool/config && sudo chown -R 1000:1000 ~/.warppool.

Add -p 3334:3334 (V1 TLS) and -p 34254:34254 (Stratum V2) if you enable those listeners.

The container’s default command is the daemon, and the pool UI comes up at http://localhost:18334 — but only once /config/config.toml exists: on a fresh install the daemon exits with “loading config” until it does. So for the first start either write config.toml yourself (see Configuration Reference) or run the first-run wizard once (auto-detects hardware, suggests a profile, tests the Bitcoin RPC, writes both files) by starting the container with the wizard binary:

docker run --rm -it -p 8331:8331 \
  -v ~/.warppool:/data -v ~/.warppool/config:/config \
  git.warppool.org/dvb-projekt/dvb-warppool:latest \
  dvb-warppool-setup --bind 0.0.0.0:8331 \
  -c /config/config.toml -s /config/secrets.toml --data-dir /data

In the wizard, enter the IP address of the machine that runs Bitcoin Core (for example 192.168.1.20:8332 for RPC, 192.168.1.20:28332 for ZMQ): inside the container 127.0.0.1 is the container itself. Bitcoin Core must accept RPC and ZMQ from there (rpcallowip, rpcbind, zmqpubhashblock).

-c and -s make the wizard write where the daemon reads, and --data-dir lets it find the database of an earlier install in /data; without them it writes into the container’s working directory and the files are gone when the helper container exits. The wizard ends by itself after you save; then start the daemon container above.

Inside a container the wizard has to listen on 0.0.0.0, and it has no login of its own. It therefore prints a one-time address on start, for example http://localhost:8331/?token=…. Open exactly that address; without the token the wizard answers with a short notice and does nothing. The token is only valid until the wizard exits.

Listen addresses and IPv6

Since v1.51.0 the image’s default command passes no listen flags: the daemon listens where config.toml says ([server] pool_listen, status_listen, [stratum] stratum_tls_listen, sv2_listen). The defaults of the first two (":3333", ":18334") mean IPv4 on all interfaces, so an existing container behaves as before; the TLS and Sv2 listeners stay off until you set theirs.

To serve IPv6 from Docker, enable IPv6 on the container’s network and bind the listeners you use to [::] (setting stratum_tls_listen or sv2_listen switches that listener on):

# docker-compose.yml
networks:
  default:
    enable_ipv6: true
[server]
pool_listen = "[::]:3333"
status_listen = "[::]:18334"

[stratum]
stratum_tls_listen = "[::]:3334"   # only if you run V1 over TLS
sv2_listen = "[::]:34254"          # only if you run Stratum V2

The pool then sees each IPv6 client’s real address. "[::]" is opt-in on purpose: in a container without an IPv6 network Docker disables IPv6, and a "[::]" bind fails.

Two consequences of the config deciding the addresses:

  • The image’s healthcheck asks http://127.0.0.1:18334/healthz. A config that moves status_listen to another port leaves the container unhealthy until the port is 18334 again or you override the healthcheck (--health-cmd / healthcheck: in Compose).
  • A loopback status_listen (such as 127.0.0.1:18334, as the reverse-proxy guide suggests for a host install) is loopback inside the container — the published port then reaches nothing. Inside Docker, keep ":18334" (or "[::]:18334") and restrict access with the port mapping instead (-p 127.0.0.1:18334:18334).

The Umbrel package passes its own listen flags and is not affected.

Native Binary

Raspberry Pi 5 (aarch64)

# arm64 .deb
wget https://git.warppool.org/dvb-projekt/dvb-WarpPool/releases/download/v1.52.0/dvb-warppool_1.52.0-1_arm64.deb
sudo dpkg -i dvb-warppool_1.52.0-1_arm64.deb
sudo systemctl enable --now dvb-warppool

Storage recommendation: NVMe HAT > USB 3 SSD > industrial SD. The SQLite WAL plus shares_raw eviction is hard on SD cards under sustained pool load.

macOS / Linux x86_64

Download the .deb, .rpm, AppImage or .dmg from the releases page. The macOS .dmg is not signed with an Apple Developer ID and not notarized (planned), so Gatekeeper flags the download. Strip the quarantine attribute from the .dmg and from the installed app:

xattr -dr com.apple.quarantine ~/Downloads/dvb-WarpPool-v*.dmg
# …mount, drag to /Applications, then:
xattr -dr com.apple.quarantine /Applications/dvb-WarpPool.app

From Source

git clone https://git.warppool.org/dvb-projekt/dvb-WarpPool
cd dvb-WarpPool
cargo build --release --workspace
./target/release/dvb-warppool-setup     # first-run wizard on :8331

Build artifacts land in target/ as usual. If your checkout lives inside a syncing folder (iCloud Drive, Dropbox, …), point cargo somewhere local instead — either export CARGO_TARGET_DIR=~/.cache/dvb-WarpPool/target or a personal, git-ignored .cargo/config.toml with [build] target-dir = …. Adjust the binary path above accordingly.

Stratum V1 vs V2

The pool can run all three listeners side by side in one process. Only the plain V1 listener is on by default; the other two start once they are configured:

  • V1 plain (:3333) — works with all existing miner firmware
  • V1 TLS (:3334) — if stratum_tls_listen + cert/key are set in config.toml
  • V2 Noise NX (:34254) — if sv2_listen is set. Requires sv2_authority_priv_key_hex in secrets.toml; generate it with dvb-warppool-cli gen-sv2-key. Without the key, Sv2 stays disabled with a warning in the log.

You can pick any port for V1 TLS and Sv2 — :3334 and :34254 are just the values used throughout this handbook. The connect modal in the UI always shows the exact host:port the running instance listens on.

To connect V1 miners when the pool exposes only Sv2 externally, use the bundled dvb-warppool-translator sidecar. See Phase History → 7.4.

Both transports also support the per-worker payout mode (each miner mines to its own address from the Stratum login) and the public wallet pages at /users/<address>. See Public 0% Solo Pool.

Connect your first miner

  1. Configure your miner with stratum+tcp://<pool-host>:3333 as the pool
  2. Use your BTC receive address as the worker name (e.g. bc1q...) — the miner’s own dashboard (AxeOS, NerdOS, ForgeOS) decodes the coinbase from the job and shows that 100% of the reward goes to that address
  3. Open the pool UI at http://<pool-host>:18334
  4. The pool hashrate chart shows shares live; the /blocks tab shows found blocks

When a block is found, the block is submitted immediately via bitcoin-rpc::submit_block, and the BlockFoundEvent triggers the notifier, which sends ntfy / Telegram / Discord / Slack / Email / browser push.

Reading the hashrate chart

The 24-hour dashboard chart shows two things at once, on two axes:

  • The filled area is the pool hashrate, estimated from accepted shares in 1-minute buckets, read against the left axis (auto-scaled — H/s, kH/s, … up to TH/s).
  • The amber dots are best-share peaks — for each time bucket, the highest real share difficulty seen in it — plotted against a separate right axis (share difficulty, scaled K/M/G/T…). They are not on the left hashrate axis.

The area and the dots answer different questions: the area is how much work is flowing, a dot is how close the best share in that slice came to solving a block. The higher a dot, the rarer that share; the all-time best also appears as Best Share on the dashboard. This is the share’s real hash difficulty, independent of the VarDiff target the miner runs at.

The dots come from the per-bucket peak difficulty carried in /api/hashrate — hover the chart to read the value for that slice. The right axis and the dots only appear on the full chart once at least one peak has been recorded; mini charts and a brand-new pool show the area only. After upgrading from an older version the dots fill in over the first ~24 h, because peak data is only recorded from the upgrade onwards.

Next Steps