Skip to content

v0.0.31 - log stratum wire submit timing

Choose a tag to compare

@JustAResearcher JustAResearcher released this 19 Jun 19:40
· 2 commits to main since this release

Diagnostics

v0.0.31 adds stratum wire-read timing to slow submit logs. A real Pearlhash mining.submit carries a large base64 plain proof, commonly hundreds of KB. Miner-reported "ping" can include the time to upload that JSON frame over the WAN, while the previous P2Pearl timing only started after the full line had already arrived.

Slow submit log lines now include:

  • read_ms: time from first byte of the stratum frame to newline
  • total_ms: server-side parse/handler/response time after the full frame arrived
  • wire_ms: read_ms + total_ms
  • frame_bytes: submitted frame size

This should tell us whether remaining 120-300 ms miner ping is server work or large proof upload/transport time. No consensus or payout behavior changes from v0.0.30.

Verification

  • python -m pytest -p no:xdist -q -> 139 passed
  • Windows p2pearl.exe --version -> p2pearl 0.0.31
  • Windows p2pearl.exe demo passed
  • Windows zip extract smoke -> p2pearl 0.0.31
  • Linux p2pearl-linux-x86_64 --version -> p2pearl 0.0.31
  • Linux p2pearl-linux-x86_64 demo passed

SHA-256

  • p2pearl.exe: 3FC95E7E5927CEB07F4523EF9566D5F3398D1A7C1D179981D621C4C4D8E80716
  • P2Pearl-v0.0.31-windows-x86_64.zip: 55DF190FC891AF4DB35E54CD1F8764EEE0DB0C9C37996718F214B310C64E0AEA
  • p2pearl-linux-x86_64: 26CCA4E8E4715BB3623C3CD19F793781589D4FD00B161ABB9BD6DE60BB00BC51
  • pearld-windows-x86_64.zip: 593223C939972D39B7B358B303FFDC6294EA8006DF8D78F0814A7656709E8028