Skip to content

eth/protocols/wit, consensus/bor: WIT2 — BP-signed witness announcements with transitive relay and pre-import serving#2208

Open
lucca30 wants to merge 26 commits into
developfrom
lmartins/wit2-signed-announce
Open

eth/protocols/wit, consensus/bor: WIT2 — BP-signed witness announcements with transitive relay and pre-import serving#2208
lucca30 wants to merge 26 commits into
developfrom
lmartins/wit2-signed-announce

eth, core/stateless: add tests for WIT2 mismatch/announce/chunk logic

fb2eb4c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 20, 2026 in 0s

54.37% (+0.31%) compared to 4154750

View this Pull Request on Codecov

54.37% (+0.31%) compared to 4154750

Details

Codecov Report

❌ Patch coverage is 91.33176% with 110 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.37%. Comparing base (4154750) to head (fb2eb4c).

Files with missing lines Patch % Lines
eth/handler_wit2.go 83.93% 40 Missing ⚠️
eth/handler_wit.go 90.86% 13 Missing and 7 partials ⚠️
eth/handler_wit2_peer.go 75.00% 11 Missing and 5 partials ⚠️
eth/fetcher/witness_manager_wit2.go 92.72% 6 Missing and 2 partials ⚠️
core/stateless/witness_commit.go 89.83% 4 Missing and 2 partials ⚠️
eth/peerset.go 73.91% 3 Missing and 3 partials ⚠️
eth/handler_wit2_announces.go 97.86% 3 Missing and 2 partials ⚠️
eth/fetcher/block_fetcher.go 42.85% 4 Missing ⚠️
eth/handler_eth.go 72.72% 2 Missing and 1 partial ⚠️
eth/handler_wit2_bodies.go 98.50% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2208      +/-   ##
===========================================
+ Coverage    54.06%   54.37%   +0.31%     
===========================================
  Files          907      912       +5     
  Lines       161989   163062    +1073     
===========================================
+ Hits         87579    88668    +1089     
+ Misses       68994    68970      -24     
- Partials      5416     5424       +8     
Files with missing lines Coverage Δ
accounts/accounts.go 100.00% <ø> (ø)
consensus/bor/bor.go 86.00% <100.00%> (+0.19%) ⬆️
core/stateless/encoding.go 65.15% <100.00%> (+1.65%) ⬆️
eth/fetcher/witness_manager.go 91.16% <100.00%> (+2.54%) ⬆️
eth/handler.go 67.46% <100.00%> (+3.98%) ⬆️
eth/peer.go 95.80% <ø> (ø)
eth/protocols/wit/broadcast.go 54.16% <100.00%> (+15.27%) ⬆️
eth/protocols/wit/handler.go 29.33% <100.00%> (+1.93%) ⬆️
eth/protocols/wit/handlers.go 54.76% <100.00%> (+7.53%) ⬆️
eth/protocols/wit/peer.go 63.87% <100.00%> (+5.89%) ⬆️
... and 11 more

... and 25 files with indirect coverage changes

Files with missing lines Coverage Δ
accounts/accounts.go 100.00% <ø> (ø)
consensus/bor/bor.go 86.00% <100.00%> (+0.19%) ⬆️
core/stateless/encoding.go 65.15% <100.00%> (+1.65%) ⬆️
eth/fetcher/witness_manager.go 91.16% <100.00%> (+2.54%) ⬆️
eth/handler.go 67.46% <100.00%> (+3.98%) ⬆️
eth/peer.go 95.80% <ø> (ø)
eth/protocols/wit/broadcast.go 54.16% <100.00%> (+15.27%) ⬆️
eth/protocols/wit/handler.go 29.33% <100.00%> (+1.93%) ⬆️
eth/protocols/wit/handlers.go 54.76% <100.00%> (+7.53%) ⬆️
eth/protocols/wit/peer.go 63.87% <100.00%> (+5.89%) ⬆️
... and 11 more

... and 25 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.