-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove unused code #6873
Conversation
@@ -51,12 +51,6 @@ export class LightClientRestTransport implements LightClientTransport { | |||
return res.response; | |||
} | |||
|
|||
async fetchBlock(blockRootAsString: string): Promise<{version: ForkName; data: allForks.SignedBeaconBlock}> { | |||
const res = await this.api.beacon.getBlockV2(blockRootAsString); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably remove all this wrappers after #6749 is merged as after api rework it's possible to get the api result in a single line instead of 3 which I would expect is the goal of these wrappers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good for a follow-up PR. This one removes code that isn't used at all.
Performance Report✔️ no performance regression detected Full benchmark results
|
69bbef4
to
a9117dd
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #6873 +/- ##
=========================================
Coverage 62.76% 62.76%
=========================================
Files 578 578
Lines 61278 61273 -5
Branches 2121 2115 -6
=========================================
- Hits 38459 38456 -3
+ Misses 22781 22779 -2
Partials 38 38 |
🎉 This PR is included in v1.20.0 🎉 |
Motivation
Keep codebase lean