-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Handle skipped blobs side car for empty blobs in blobsSidecarsByRange #4936
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
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.
Given that this function is growing in complexity would make sense to move it to a file with signature
function beaconBlocksMaybeBlobsByRange(config, reqResp, peerId, request) {}
And unit test it by injecting a mock reqResp that resolves with predefined data
03d8b4e
to
aabd227
Compare
import {doBeaconBlocksMaybeBlobsByRange, ReqRespBeaconNode} from "../../../src/network/reqresp/index.js"; | ||
import {BlockInputType} from "../../../src/chain/blocks/types.js"; | ||
|
||
describe("doBeaconBlocksMaybeBlobsByRange", function () { |
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.
Please always append .test.ts
extension to test files
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.
ahh thats my bad, here is the fix: #4949
Handle skipped blobs side car for empty blobs in blobsSidecarsByRange
see: