Skip to content

feat(ejector): Remove Data API Lookups for V1 protocol#2486

Open
ethenotethan wants to merge 2 commits intomasterfrom
ethenotethan-chore-ejector-remove-v1-signing-inference
Open

feat(ejector): Remove Data API Lookups for V1 protocol#2486
ethenotethan wants to merge 2 commits intomasterfrom
ethenotethan-chore-ejector-remove-v1-signing-inference

Conversation

@ethenotethan
Copy link
Contributor

@ethenotethan ethenotethan commented Feb 3, 2026

Why are these changes needed?

Nukes V1 data API lookups wrt validator signing rates

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

Copilot AI review requested due to automatic review settings February 3, 2026 17:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes EigenDA v1 protocol signing-rate lookups from the ejector so that it only queries v2 signing rates via the Data API.

Changes:

  • Removed v1 signing-rate lookup plumbing from Ejector (struct fields, constructor args, and evaluation flow).
  • Updated main wiring to pass only the v2 signing-rate lookup.
  • Removed Data API v1 signing-rate implementation and made v1 requests return an explicit unsupported error.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
ejector/main/main.go Stops passing a duplicated Data API signing-rate lookup; clarifies it’s v2-only.
ejector/ejector.go Removes v1 lookup usage and evaluates validators using only v2 signing rates.
ejector/data_api_signing_rate_lookup.go Deletes v1 lookup implementation and returns an error for v1 protocol requests.
Comments suppressed due to low confidence (1)

ejector/ejector.go:106

  • The inline comment on the omitPerfectSigners argument still references inconsistent behavior between v1 and v2, but v1 signing-rate lookups have been removed from this code path. Please update the comment to reflect the current (v2-only) behavior so it doesn’t mislead future readers.
		ProtocolVersionV2,
		true, // omit perfect signers if possible (data API has inconsistent behavior across v1 and v2)
	)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 52 to 55
switch version {
case ProtocolVersionV1:
if !omitPerfectSigners {
srl.logger.Warn(
"omitPerfectSigners flag is ignored for ProtocolVersionV1, will never return perfect signers")
}
return srl.getV1SigningRates(timeSpan, quorums)
return nil, fmt.Errorf("eigenda v1 protocol is no longer supported")
case ProtocolVersionV2:
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ProtocolVersionV1 now returns an immediate error. Please add a small unit test asserting that v1 requests fail (and return a stable/expected error) so this behavior doesn’t regress silently if code paths are reintroduced later.

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.36%. Comparing base (0ba93f1) to head (a719dd0).

Files with missing lines Patch % Lines
ejector/data_api_signing_rate_lookup.go 0.00% 1 Missing ⚠️
ejector/ejector.go 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2486      +/-   ##
==========================================
+ Coverage   39.30%   39.36%   +0.05%     
==========================================
  Files         536      536              
  Lines       49005    48916      -89     
==========================================
- Hits        19261    19255       -6     
+ Misses      27305    27219      -86     
- Partials     2439     2442       +3     
Flag Coverage Δ
litt-tests 32.99% <ø> (ø)
unit-tests 40.24% <0.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants