Skip to content

v0.0.27 - resilient stratum job fanout

Choose a tag to compare

@JustAResearcher JustAResearcher released this 19 Jun 01:46
· 6 commits to main since this release

What changed

  • Fixes a stratum job-delivery stall where one slow, half-open, or backpressured miner socket could block mining.notify broadcasts to other miners.
  • Job broadcasts now fan out concurrently to ready miners instead of sending to connections serially.
  • Stratum writes now have a bounded 5 second drain timeout; timed-out or already-closing sockets are dropped instead of staying in the broadcast path forever.
  • Connection-close failures during broadcast are logged without noisy shutdown tracebacks.
  • Adds a regression test proving a slow connection cannot prevent another miner from receiving a fresh job.
  • Bumps P2Pearl to 0.0.27 and test coverage to 134 passing tests.

Why

Your stratum port was reachable publicly and WAN miners had established TCP sessions, so this was not a closed-port problem. The bug was inside the pool's job fanout: _broadcast() pushed jobs one connection at a time, and each send waited on writer.drain() with no timeout. A stale or slow WAN socket could therefore stop later miners from getting fresh jobs, which looked like the pool stopped serving users outside the LAN.

Assets

  • p2pearl.exe: Windows x64 GUI/CLI app with bundled production node support.
  • P2Pearl-v0.0.27-windows-x86_64.zip: Windows x64 zip containing p2pearl.exe.
  • p2pearl-linux-x86_64: Linux x86_64 CUDA prover build; includes the production proof stack.
  • pearld-windows-x86_64.zip: standalone pearld 1.1.1 + prlctl bundle.

Verification

  • .venv\\Scripts\\python.exe -m pytest -q -> 134 passed.
  • Windows artifact reports p2pearl 0.0.27 and passes p2pearl demo.
  • Linux artifact reports p2pearl 0.0.27 and passes p2pearl demo.

SHA256

  • p2pearl.exe: 1282E5D2F50C0400E04B81FF2E1A0D0501C6F39E3EAEAAF39D691CBB1298683A
  • P2Pearl-v0.0.27-windows-x86_64.zip: AFB9922E6BEC4BB38000AD64983C7CC509EB906FF0E5FC895A89EB2EFD27B309
  • p2pearl-linux-x86_64: 206CEE6D607692192BD3797A02B64070C9F743A7B76125E6F6239F2DA9AB7E24
  • pearld-windows-x86_64.zip: 593223C939972D39B7B358B303FFDC6294EA8006DF8D78F0814A7656709E8028