Pools and connections
Sl0ptiminer mines on a pool that speaks stratum, on a plain TCP port or a TLS port. You give it the pool with -o. The pool must be one for the coin you mine: the algorithm's page says where to find one.
Pool address
./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1ALGORITHM is the algorithm you mine, for example hoohash; algorithms lists them with their address forms.
HOST:PORTis the pool's stratum host and port. A leadingstratum+tcp://is accepted and means the same.- For a TLS port, write
stratum+ssl://HOST:PORT. See TLS. - The miner needs both the host and the port.
Address, worker and password
-utakes your address for the coin you mine. Add a dot and a worker name to tell your machines apart:YOUR_ADDRESS.rig1. Choose a name that says nothing about you: who sees it.-pis the pool password. Most pools ignore it. The default isx.- The form of the address belongs to the coin, and for some coins it also picks the network. The algorithm's page shows it.
TLS
If your pool offers a TLS (SSL) port, the connection to it is encrypted and the miner checks that it really talks to that pool.
./sloptiminer mine -a ALGORITHM -o stratum+ssl://HOST:PORT -u YOUR_ADDRESS.rig1- Address forms.
stratum+ssl://,stratum+tls://,stratum+tcps://,ssl://andtls://all mean TLS. Use the pool's TLS port, not its plain one. - Certificate check. The pool's certificate is checked for
HOSTagainst the trusted root certificates built into the miner (Mozilla's list). - Fee windows use the same pool address and the same kind of connection, TLS or plain, as your own link.
- Self-signed certificates. A pool may use a certificate that no known authority signed, for example your own pool. Then add
--tls-insecure. The link stays encrypted, but the certificate is not checked, so anyone between you and the pool can pose as it. The miner prints a warning at every start. Use it only for a pool you trust. It is never the default, and it is refused with a plainstratum+tcp://address.
When TLS fails, the miner says why and keeps retrying, as with any lost connection:
| Message | What to do |
|---|---|
| "The pool's TLS certificate was not accepted." | Check the host name in the pool address. Use --tls-insecure only for a pool you trust that has a self-signed certificate. |
| "The pool answered in plain text, not TLS." | That port is a plain port. Use stratum+tcp:// for it, or the pool's TLS port. |
| "The TLS handshake with the pool failed." | Check that the port is the pool's TLS port. |
Backup pools
Give up to ten pools by repeating -o. The first is the primary. The others are backups, in the order you give them.
./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1 -o BACKUP_HOST:PORT- It switches by itself. When a pool fails, the miner moves to the next working one.
- It returns by itself. The miner checks a failed pool 30 seconds after it failed and then once a minute. After two good checks in a row it switches back to the pool higher in your list: a minute and a half after the failure at the earliest. Each failed check doubles the wait, up to 5 minutes, so after a long outage the return can take 10 minutes. A pool that fails again within 5 minutes of its return has to pass one more check each time, up to four.
- The pool row says where you are. On a backup it reads, for example, "backup 1 of 2 · primary down 45 s, probing".
- No gap. The miner keeps mining on the old connection until the new one is mining.
- Same address, unless you give another. One
-userves every pool, wherever it stands in the command. A backup that needs its own address or password gets a-uor-pright after its-o; the primary's then stand right after the primary. - TLS works too. A TLS pool can be a backup.
- The fee follows you. A fee window runs on the pool you are mining on at that moment.
Pool or solo
The miner does not care. A solo pool, a shared pool and your own node behind a stratum bridge all look the same to it. The pool decides how rewards are paid.
When the connection drops
The miner reconnects by itself, and with backup pools it moves to the next pool meanwhile. It waits 1 s before the first try and doubles the wait up to 30 s. The pool row shows "reconnecting" with the reason. Mining continues as soon as the pool answers. You do not need to restart anything.
Latency
Latency is the round trip of a share to the pool and back. A far-away pool means more stale shares: by the time your share arrives, the pool has moved to new work. If the pool offers several regions, pick the closest.
The fee and your pool
Shortly before each fee window the miner opens a second connection to the same pool, over TLS if your own link uses it. Some pools show it as one more worker. How the fee works has the details.