Pool server for RIPTIDE. This tree is DATUM Prime and the TIDES payout code. It does not include the public website, the Beta rollups, or the HTTP API.
Prime is this process. It takes DATUM sessions and builds the coinbase from the share database. Bet is the second house running this same server, with its own database and its own Knots node. The code here is the current server. Passwords, pool keys, and host addresses are not in this tree.
A payments node plus one DATUM gateway can run on a small box. A pool house cannot. Prime, Postgres, and a pruned Knots node want about 4 cores, 16 GB of RAM, and on the order of 100 GB of disk as the database grows.
The process reads these from the environment. They are not in this repo.
TIDES_DATABASE_URLTIDES_BITCOIN_RPC_URLTIDES_BITCOIN_RPC_USERTIDES_BITCOIN_RPC_PASSWORDTIDES_POOL_OPS_ADDRESS
The pool signing key and box key are read at startup from TIDES_POOL_KEYS_PATH
(default /app/data/pool_keys.json). Mount that file at runtime. Do not commit it.
HAProxy door flips, the second Prime process, and the host ops notes are how one machine swaps a live writer. The server runs as one Prime process without them.