-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement EIP7691: Blob throughput increase #14750
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ func (s *Service) rpcHandlerByTopicFromFork(forkIndex int) (map[string]rpcHandle | |
|
||
// Deneb: https://github.com/ethereum/consensus-specs/blob/dev/specs/deneb/p2p-interface.md#messages | ||
// Electra: https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/p2p-interface.md#messages | ||
case version.Deneb, version.Electra: | ||
case version.Deneb: | ||
return map[string]rpcHandler{ | ||
p2p.RPCStatusTopicV1: s.statusRPCHandler, | ||
p2p.RPCGoodByeTopicV1: s.goodbyeRPCHandler, | ||
|
@@ -76,7 +76,17 @@ func (s *Service) rpcHandlerByTopicFromFork(forkIndex int) (map[string]rpcHandle | |
p2p.RPCBlobSidecarsByRootTopicV1: s.blobSidecarByRootRPCHandler, // Added in Deneb | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the |
||
p2p.RPCBlobSidecarsByRangeTopicV1: s.blobSidecarsByRangeRPCHandler, // Added in Deneb | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
}, nil | ||
|
||
case version.Electra: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are all the other handlers removed? ( If I am not wrong, is it possible to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. had the same question There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My lack of understanding, thanks guys |
||
return map[string]rpcHandler{ | ||
p2p.RPCStatusTopicV1: s.statusRPCHandler, | ||
p2p.RPCGoodByeTopicV1: s.goodbyeRPCHandler, | ||
p2p.RPCBlocksByRangeTopicV2: s.beaconBlocksByRangeRPCHandler, | ||
p2p.RPCBlocksByRootTopicV2: s.beaconBlocksRootRPCHandler, | ||
p2p.RPCPingTopicV1: s.pingHandler, | ||
p2p.RPCMetaDataTopicV2: s.metaDataHandler, | ||
p2p.RPCBlobSidecarsByRootTopicV2: s.blobSidecarByRootRPCHandler, // Added in Electra | ||
p2p.RPCBlobSidecarsByRangeTopicV2: s.blobSidecarsByRangeRPCHandler, // Added in Electra | ||
}, nil | ||
default: | ||
return nil, errors.Errorf("RPC handler not found for fork index %d", forkIndex) | ||
} | ||
|
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.
oh nice code cleanup