fix: skip DA cache restore for P2P-only nodes - #3408
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
ChangesDA cache restoration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3408 +/- ##
==========================================
+ Coverage 62.33% 62.34% +0.01%
==========================================
Files 120 120
Lines 13454 13461 +7
==========================================
+ Hits 8386 8392 +6
- Misses 4126 4128 +2
+ Partials 942 941 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Overview
P2P-only sync nodes restored persisted DA inclusion snapshots left by a previous DA-enabled run. This happened because
NewSyncComponentsalways constructed a cache manager that restored DA state, even when the node had no DA client or submitter.This change:
ClearCachebehavior;P2P-only nodes no longer load in-flight DA header and data inclusion entries from the previous DA-enabled configuration.
Validation
go test ./... -count=1go vet ./block/...Summary by CodeRabbit