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

iotaledger / iota / 22811352372 / 1
69%
develop: 69%

Build:
DEFAULT BRANCH: develop
Ran 08 Mar 2026 04:16AM UTC
Files 1552
Run time 35s
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

06 Mar 2026 08:35PM UTC coverage: 63.611% (+0.01%) from 63.598%
22811352372.1

push

github

web-flow
fix(starfish): increase per-block lock limit in header synchronizer to prevent peer starvation (#10532)

# Description of change

Increase `MAX_AUTHORITIES_TO_FETCH_PER_BLOCK_HEADER` from 2 to 3 to fix
header synchronizer starvation when wiped-DB validators saturate
per-block lock slots. `MAX_PERIODIC_SYNC_PEERS` stays at 4.

**Observed Problem in testing:** When 3 validators have wiped DBs and
their blocks are garbage collected and referenced by a certified commit,
the block suspender marks them as "who knows" peers. The header
synchronizer then selects 2 of them as known peers (filling
`MAX_PERIODIC_SYNC_PEERS - MAX_PERIODIC_SYNC_RANDOM_PEERS = 4 - 2 = 2`
slots). With `MAX_AUTHORITIES_TO_FETCH_PER_BLOCK_HEADER = 2`, these 2
known peers saturate all per-block lock slots, blocking random peers
from fetching. Since wiped validators always fail, the system is stuck.

**Fix:** Increase `MAX_AUTHORITIES_TO_FETCH_PER_BLOCK_HEADER` from 2 to
3, allowing 3 concurrent fetchers per block header. Even when both known
peers are wiped-DB validators occupying 2 lock slots, 1 slot remains for
a random peer to reach a healthy validator. This preserves the original
peer count (4) while resolving the starvation.

## Links to any relevant issues

Fixes #10531

## How the change has been tested

- [x] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [x] I have added tests that prove my fix is effective or that my
feature works: I run the same simulation scenario in which some
validator got stuck and were not able to get synced
- [x] I have checked that new and existing unit tests pass locally with
my changes

227339 of 357389 relevant lines covered (63.61%)

2747962.78 hits per line

Source Files on job nextest+simtest - 22811352372.1
  • Tree
  • List 1552
  • Changed 48
  • Source Changed 0
  • Coverage Changed 48
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22811352372
  • 1fe8c43d on github
  • Prev Job for on develop (#22789039335.1)
  • Next Job for on develop (#22834743110.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc