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

iotaledger / iota / 22811352372
65%

Build:
DEFAULT BRANCH: develop
Ran 08 Mar 2026 04:16AM UTC
Jobs 1
Files 1540
Run time 2min
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.866% (+0.01%) from 63.853%
22811352372

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

64 of 66 new or added lines in 1 file covered. (96.97%)

90 existing lines in 18 files now uncovered.

227284 of 355874 relevant lines covered (63.87%)

2759661.2 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
91.6
0.0% crates/starfish/core/src/header_synchronizer.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.22
0.14% crates/iota-core/src/checkpoints/mod.rs
1
90.24
-0.07% crates/iota-core/src/execution_cache/writeback_cache.rs
1
95.41
-0.23% crates/iota-core/src/signature_verifier.rs
1
86.9
0.0% crates/iota-network/src/discovery/mod.rs
1
77.26
-0.11% crates/iota-types/src/crypto.rs
1
93.14
0.09% crates/starfish/core/src/authority_service.rs
1
96.77
-0.1% crates/starfish/core/src/cordial_knowledge.rs
1
95.35
-0.04% crates/starfish/core/src/dag_state.rs
1
76.24
0.09% crates/test-cluster/src/lib.rs
2
86.98
-0.09% crates/iota-core/src/authority/authority_per_epoch_store.rs
2
80.07
-0.06% crates/iota-core/src/authority.rs
2
79.54
-0.23% crates/iota-core/src/authority_server.rs
4
73.69
-0.57% crates/iota-network/src/randomness/mod.rs
4
82.49
-0.78% crates/starfish/core/src/network/tonic_network.rs
6
91.51
-0.77% crates/iota-core/src/transaction_manager.rs
13
58.33
-27.08% crates/iota-network-stack/src/anemo_ext.rs
14
88.96
-1.36% crates/iota-core/src/epoch/randomness.rs
34
91.6
0.0% crates/starfish/core/src/header_synchronizer.rs
Jobs
ID Job ID Ran Files Coverage
1 nextest+simtest - 22811352372.1 08 Mar 2026 04:15AM UTC 1552
63.61
GitHub Action Run
Source Files on build 22811352372
  • Tree
  • List 1540
  • Changed 48
  • Source Changed 0
  • Coverage Changed 48
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22811352372
  • 1fe8c43d on github
  • Prev Build on develop (#22789039335)
  • Next Build on develop (#22834743110)
  • Delete
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