Skip to content

v0.0.28 - live share job timestamps

Choose a tag to compare

@JustAResearcher JustAResearcher released this 19 Jun 17:25
· 5 commits to main since this release

What changed

  • Fixes miners appearing to stop receiving useful jobs / stop hashing after a few accepted shares.
  • Each new per-miner job now uses a fresh live, monotonic timestamp instead of reusing the parent getblocktemplate.curtime for every share on the same Pearl tip.
  • The candidate share timestamp and the 76-byte mining header timestamp now stay identical, so the proof commits to exactly the share being credited.
  • Adds a regression test proving that multiple accepted shares on the same parent template, spaced at the sidechain target interval, do not artificially harden the next share target.
  • Bumps P2Pearl to 0.0.28 and test coverage to 135 passing tests.

Why

The previous builds reused getblocktemplate.curtime while the parent Pearl tip stayed unchanged. If the pool accepted several shares before a new parent block, those sidechain shares could have identical timestamps. The retarget logic interpreted that as shares arriving in zero seconds and clamped the target 4x harder per share. After a handful of shares, the miner could be given work that was effectively too hard, which looked like jobs stopped or hashing stalled.

This release stamps jobs with wall-clock time, never earlier than the parent template time or previous share timestamp + 1 second.

Operational note

Stop the currently running P2Pearl process and start v0.0.28. The sharechain is in memory, so restarting also clears any over-hardened target state created by the older timestamp bug. You do not need to delete ~/.p2pearl or resync pearld.

Assets

  • p2pearl.exe: Windows x64 GUI/CLI app with bundled production node support.
  • P2Pearl-v0.0.28-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 -> 135 passed.
  • Windows artifact reports p2pearl 0.0.28 and passes p2pearl demo.
  • Linux artifact reports p2pearl 0.0.28 and passes p2pearl demo.

SHA256

  • p2pearl.exe: 288EC06AF0656C413CF79F4E1DBAE3F422C713A9485D2B5AF32AA14BA06F7AAA
  • P2Pearl-v0.0.28-windows-x86_64.zip: 5203E71154AB54BA1023D280C955E5D5CE302AA7C2502671A2ED1EB365753B36
  • p2pearl-linux-x86_64: 37085B44AFAE49A19570C6C481DFBBA80018EF39689E76EF83911152294FAC27
  • pearld-windows-x86_64.zip: 593223C939972D39B7B358B303FFDC6294EA8006DF8D78F0814A7656709E8028