puntohunter

Bitcoin mining explained.

Understand the connection, the work miners submit, and how pools pay rewards.

Stratum V1 and V2 connection settings

Stratum carries jobs from a pool to a miner and share submissions in the other direction. A mining endpoint is identified by protocol, hostname, and port. The website where you read the pool's settings can use a different hostname.

Match the protocol and port

Stratum V1 uses JSON messages. Stratum V2 uses a binary protocol with authenticated, encrypted transport. Firmware and pool support determines which one you can use. Follow the interface instructions for separate host and port fields or a complete connection URL.

Authenticate Stratum V2

Use the authority key that the pool publishes for the chosen endpoint. A miner that authenticates the pool checks the server against that key. If a pool rotates its key, use the replacement from its official setup page before reconnecting.

Confirm work reaches the pool

After reconnecting, check the miner's logs and the pool's worker page for accepted shares. If shares are rejected, check the protocol, host, port, and username against the pool's instructions. The MinerTest setup page shows the common settings for a test run.

Source: Stratum V2 protocol specification.

Updated

What accepted shares and blocks measure

Share difficulty governs how often a miner sends work to the pool. Network difficulty governs how often the same work produces a candidate Bitcoin block. At constant hashrate, changing the share difficulty changes the rate of share submissions while the expected block rate stays the same.

Follow a submitted result

  1. The miner hashes a header built from the pool's work.
  2. The pool verifies the result against the applicable share target. Accepted shares signal that the miner is contributing work.
  3. A result that meets the network target can be assembled into a complete block and submitted to the pool's Bitcoin node. The node verifies the full block.
  4. If the node accepts the block, later blocks that extend the same chain add confirmations. A competing chain may instead leave it orphaned.

Measure the chance over time

At 1 TH/s and a network difficulty of 145 trillion, the mean time per block is about 19,700 years. Under constant conditions, a single day has roughly a one-in-7.2-million chance. The odds calculator lets you substitute your own values. MinerTest uses a much lower block difficulty so you can watch the same submission steps on a private test chain.

Updated

Solo and pooled mining compared

Mining modes change how rewards are distributed. At the same hashrate and network difficulty, the mining hardware generates the same expected number of valid block solutions in any mode.

Solo

The finder receives the block's reward under the pool's published fee policy. At low hashrate, the chance of receiving anything over a short run is low even when the miner submits many accepted shares. Use the odds calculator with your own hashrate and time horizon.

Shared payout methods

Pay-per-share (PPS) pays a defined amount for accepted work. The operator bears more of the variation in when blocks arrive. Pay-per-last-N-shares (PPLNS) allocates a block's reward to a window of work, so payments still depend on the pool finding blocks. Fees, inclusion of transaction fees, and settlement terms vary by pool.

Compare fees and payouts together

Compare the payout scheme, fee, where the coinbase reward goes, and any settlement or withdrawal threshold. Review those terms before copying connection settings. The Nearest Pool tool measures only the connection to DreamLogic's regional solo pools.

Updated

Bitcoin mining terms in context

A hash is one attempt to meet the Bitcoin network's target. Miners report how many attempts their hardware makes per second. 1 TH/s is one trillion hashes per second, and 1 PH/s is 1,000 TH/s.

Target and difficulty

A header hash must be at or below the target. Difficulty is inversely proportional to the target. At difficulty D, the usual estimate for the number of hashes per block is D × 2³². The solo odds calculator uses that estimate with a specified hashrate and difficulty.

Work, share, and block

A pool issues work derived from a block template. A result meeting the pool's share target records work. If the result also meets the network target, the pool can assemble the block and submit it to its node. See shares and blocks for the checks that follow.

Worker and payout address

A worker identifies one machine within a pool account or fleet. A pool can accept the receiving address as part of its Stratum username. The payout address sets where funds go. A worker name helps the operator tell machines apart.

Subsidy, fees, and maturity

The coinbase transaction assigns the block subsidy and the fees from included transactions. Pool fees are a separate deduction according to the pool's terms. Bitcoin enforces a 100-block coinbase maturity before a block's output can be spent.

Updated