Removed unused routing intents, fix double counting hashrate #603

Merged
paratoxic merged 5 commits from hashrate-variance into master 2026-08-20 21:33:30 +00:00
Owner
No description provided.
Parked sessions awaiting resume were absorbed into the traffic stats,
double-counting hashrate for up to SESSION_TTL after a trim and
amplifying the 1m window on every reconnect. Keep parked sessions
visible in the disconnected count and worker lifetime totals only.
- Intent claiming by IP piled new connections onto the latest bid
  behind shared NAT addresses; claiming is enonce1-only now.
- A starving order must show a deficit on two consecutive rebalance
  ticks before sessions are trimmed, damping trim churn driven by
  noisy 1m hashrate estimates.
- A reconnecting session only resumes its home order when home is
  among the neediest buckets, so overflowing orders stop reclaiming
  dropped sessions.
Upstream pools idle-drop clients that forward no shares for a while,
which cancelled every downstream session on the order and fed the
rebalance churn. The bouncer now treats any valid stratum message as
interaction, and the upstream client sends a periodic
mining.suggest_difficulty with the current difficulty (a vardiff
no-op) as keepalive.
Resume enonce1 and subscribe first on miner reconnect
Some checks failed
CI / ckpool (pull_request) Successful in 31s
CI / lint (pull_request) Successful in 2m32s
CI / test-linux (pull_request) Failing after 7m59s
37cce8f7bc
Presenting the stored enonce1 in mining.subscribe lets the router
claim intents and resume sessions. Subscribing before
mining.configure puts the subscribe line first inside the router's
greet window.
Update
Some checks failed
CI / ckpool (pull_request) Successful in 27s
CI / lint (pull_request) Successful in 2m32s
CI / test-linux (pull_request) Failing after 8m34s
4935538379
paratoxic force-pushed hashrate-variance from 4935538379
Some checks failed
CI / ckpool (pull_request) Successful in 27s
CI / lint (pull_request) Successful in 2m32s
CI / test-linux (pull_request) Failing after 8m34s
to dbb30b7118
All checks were successful
CI / ckpool (pull_request) Successful in 38s
CI / lint (pull_request) Successful in 3m24s
CI / test-linux (pull_request) Successful in 9m29s
2026-08-20 20:15:35 +00:00
Compare
paratoxic changed title from Fix routing algo to Removed unused routing intents 2026-08-20 20:16:24 +00:00
paratoxic changed title from Removed unused routing intents to Removed unused routing intents, fix double counting hashrate 2026-08-20 20:16:37 +00:00
Improve
All checks were successful
CI / ckpool (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 2m1s
CI / test-linux (pull_request) Successful in 6m56s
30e050598f
paratoxic merged commit 4218715485 into master 2026-08-20 21:33:30 +00:00
paratoxic deleted branch hashrate-variance 2026-08-20 21:33:31 +00:00
Sign in to join this conversation.
No description provided.