mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
Implement beacon_blocks_by_head (#9237)
Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -589,6 +589,7 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
Protocol::Ping => PeerAction::MidToleranceError,
|
||||
Protocol::BlocksByRange => PeerAction::MidToleranceError,
|
||||
Protocol::BlocksByRoot => PeerAction::MidToleranceError,
|
||||
Protocol::BlocksByHead => PeerAction::MidToleranceError,
|
||||
Protocol::BlobsByRange => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRange => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRoot => PeerAction::MidToleranceError,
|
||||
@@ -617,6 +618,7 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
Protocol::Ping => PeerAction::Fatal,
|
||||
Protocol::BlocksByRange => return,
|
||||
Protocol::BlocksByRoot => return,
|
||||
Protocol::BlocksByHead => return,
|
||||
Protocol::PayloadEnvelopesByRange => return,
|
||||
Protocol::PayloadEnvelopesByRoot => return,
|
||||
Protocol::BlobsByRange => return,
|
||||
@@ -642,6 +644,7 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
Protocol::Ping => PeerAction::LowToleranceError,
|
||||
Protocol::BlocksByRange => PeerAction::MidToleranceError,
|
||||
Protocol::BlocksByRoot => PeerAction::MidToleranceError,
|
||||
Protocol::BlocksByHead => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRange => PeerAction::MidToleranceError,
|
||||
Protocol::PayloadEnvelopesByRoot => PeerAction::MidToleranceError,
|
||||
Protocol::BlobsByRange => PeerAction::MidToleranceError,
|
||||
|
||||
Reference in New Issue
Block a user