• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dangernoodle-io / TaipanMiner / 25148043461
90%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 04:52AM UTC
Jobs 1
Files 28
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Apr 2026 04:51AM UTC coverage: 92.949% (+0.02%) from 92.932%
25148043461

push

github

web-flow
feat: pool latency measurement (TA-118) (#271)

Measure stratum round-trip time on active pool connection and expose via
/api/pool.latency_ms (rounded ms, integer). Uses exponential moving average
(EMA) for stable readings.

Track inflight request send-times indexed by JSON-RPC id (modulo 32 for
collisions). On response, compute RTT and update EMA with 7/8 old + 1/8 new.
Reset state on connection and apply 0-30s sanity bound.

Files changed:
- stratum_io.c: add inflight send-time array, record send-time in
  stratum_request(), compute RTT on response, reset on reconnect
- stratum.h: add stratum_get_pool_rtt_ms() getter (returns -1 if no sample)
- routes_json.h: add latency_ms field to pool_snapshot_t
- routes.c: populate latency_ms in /api/pool handler
- routes_json.c: emit latency_ms in JSON (null if -1)
- test_routes_json.c: update existing tests, add test_pool_latency_positive
  and test_pool_latency_negative

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>

588 of 700 branches covered (84.0%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

1363 of 1399 relevant lines covered (97.43%)

297365.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25148043461.1 30 Apr 2026 04:52AM UTC 28
92.95
GitHub Action Run
Source Files on build 25148043461
  • Tree
  • List 28
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25148043461
  • 0d84c4bf on github
  • Prev Build on main (#25147714578)
  • Next Build on main (#25148268923)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc