mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-27 01:33:33 +00:00
Gloas serve envelope rpc (#8896)
Serves envelope by range and by root requests. Added PayloadEnvelopeStreamer so that we dont need to alter upstream code when we introduce blinded payload envelopes. Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com> Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -590,6 +590,8 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
Protocol::BlocksByRange => PeerAction::MidToleranceError,
|
||||
Protocol::BlocksByRoot => PeerAction::MidToleranceError,
|
||||
Protocol::BlobsByRange => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRange => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRoot => PeerAction::MidToleranceError,
|
||||
// Lighthouse does not currently make light client requests; therefore, this
|
||||
// is an unexpected scenario. We do not ban the peer for rate limiting.
|
||||
Protocol::LightClientBootstrap => return,
|
||||
@@ -615,6 +617,8 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
Protocol::Ping => PeerAction::Fatal,
|
||||
Protocol::BlocksByRange => return,
|
||||
Protocol::BlocksByRoot => return,
|
||||
Protocol::PayloadEnvelopesByRange => return,
|
||||
Protocol::PayloadEnvelopesByRoot => return,
|
||||
Protocol::BlobsByRange => return,
|
||||
Protocol::BlobsByRoot => return,
|
||||
Protocol::DataColumnsByRoot => return,
|
||||
@@ -638,6 +642,8 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
Protocol::Ping => PeerAction::LowToleranceError,
|
||||
Protocol::BlocksByRange => PeerAction::MidToleranceError,
|
||||
Protocol::BlocksByRoot => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRange => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRoot => PeerAction::MidToleranceError,
|
||||
Protocol::BlobsByRange => PeerAction::MidToleranceError,
|
||||
Protocol::BlobsByRoot => PeerAction::MidToleranceError,
|
||||
Protocol::DataColumnsByRoot => PeerAction::MidToleranceError,
|
||||
|
||||
Reference in New Issue
Block a user