How to mine

@if (isWeb()) {

You loaded this page from CloudFront. This page’s miner speaks Stratum v1 over WebSocket (the usual mining protocol) to a pool or to ws://127.0.0.1:23335/stratum.

Web Mining App: this page speaks WSS Stratum to a pool or DATUM Gateway; gateway talks the node’s block template to the node and DATUM to DATUM Prime Pool
} @else {

The Desktop Mining App uses TCP Stratum or node RPC. No WebSocket required. Host a pool stays DATUM Prime Pool spawn for friends, family, LAN, and mesh.

Desktop Mining App: TCP Stratum to a pool or gateway, or RPC to a node; gateway talks the node’s block template to the node and DATUM to DATUM Prime Pool
}

Spend menu

Dilithium 87 is the default. Dilithium 44 is the middle. SegWit is BIP 141 with the old Bitcoin curve (secp256k1): cheap and warned. The curve is the math, not a fourth wallet. Weight is the price. We do not force.

Check a block

Max block size, named layout, signature, then the fee floor. Extra junk or a short fee is refused.

Bitcoin Knots, then FederationCoin

Same order on both. We change the header, the hash, and the payment kinds (SegWit, Dilithium 44, Dilithium 87). We also require a fee. The max block size can grow or shrink. A late block is not a fail; ask for more confirmations.

Max block size

Max block size starts at 2.4M. At each coin-halving (~4.8 years), grow by 12% only if 4/5 of blocks were saturated (leftover weight could not fit two simplest payments). Cut in half if 4/5 were slack (below 20% weight). Floor 2.4M. Grow and cut cannot both fire. Arbitrary data paths are closed.

At each coin-halving the max may grow by 12%, cut in half, or stay. Floor 2.4M.

After the subsidy

New coins fall toward zero. Every payment pays at least floor(vsize / 12) tokens. A token is the smallest unit. A virtual byte is the size of the transaction, not the amount of coin. The rate stays while the subsidy halves. It is a small charge beside a 50-coin block and is still required when new coins stop. Miners do not work for free. Proof of work stays.

The subsidy falls toward zero. The minimum fee stays at floor(vsize / 12).

WebSocket protocol

Newline JSON-RPC. Password x. Path /stratum. Subscribe, authorize, notify, set difficulty, submit. Junk frames are closed. A pool may also send client.pool_stats; a gateway does not. A DATUM Gateway may answer client.gateway_info when the operator turns that extra on (default off). This app only asks on DATUM Gateway WebSocket. At most six WebSocket connections per client IP; one accepted client.gateway_info per five seconds on that socket.

Example of the gateway-info card under the DATUM Gateway WebSocket URL, showing node status and a published DATUM Prime Pool host

If a connection drops or a message times out

This app reconnects with exponential backoff (1s, doubling to 60s). Hashing continues for 3s, then pauses. Submits retry from an outbox every 8s. Status and a short toast say what happened. Nothing stalls silently.

If an ASIC is paused

House does not keep a Stratum session alive with repeated set_difficulty. A paused box that keeps TCP up will not subscribe again on unpause. After load-balancer idle (7.5 minutes) the connection can close; unpause should open a new session. Reboot the box if last share stays blank. This app reconnects on its own receive idle; an ASIC does not.

Pool grades

The app-hosted pool (desktop child process, loopback, JSONL on disk) is for friends, family, LAN, and mesh. One process, no HA, no RDS-style backups. If the process dies or the file is lost, some accepted work can vanish from how the pool credits shares. With people you know, you can make that right. At scale (strangers, public hashrate, mainnet) it is an incident.

A pro pool needs a shared share store (Postgres), replicas only after that store exists, and backups. Sticky sessions are not how the pool credits shares.

DATUM is bring your own node

You speak Stratum v1 to the gateway (or to a Stratum pool). DATUM is the encrypted gateway-to-DATUM Prime Pool link. This app does not open a DATUM socket. The gateway talks to the pool; this app talks to the gateway. Template construction stays on your FederationCoin node. Do not send this app’s miner to pool WSS /datum.

Pool registration, stake, and attestation

Pool Finder is a public directory, not a login. Listings sit on one side; register on the other. A listing stake is hours of RTX 3090 Ti work, shown as GFCN. You are not sending coin: that balance must sit in the wallet (Electrum Format envelope, attest once per connection). There is no DATUM Prime Pool WebSocket for this app. This app talks to a gateway over WSS; the gateway talks to a DATUM Prime Pool over TCP.