mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-29 18:53:32 +00:00
Resolve merge conflicts
This commit is contained in:
@@ -14,7 +14,7 @@ use beacon_processor::{BeaconProcessorSend, DuplicateCache};
|
||||
use futures::prelude::*;
|
||||
use lighthouse_network::rpc::*;
|
||||
use lighthouse_network::{
|
||||
MessageId, NetworkGlobals, PeerId, PubsubMessage, Response,
|
||||
GossipTopic, MessageId, NetworkGlobals, PeerId, PubsubMessage, Response,
|
||||
service::api_types::{AppRequestId, SyncRequestId},
|
||||
};
|
||||
use logging::TimeLatch;
|
||||
@@ -25,7 +25,7 @@ use tokio::sync::mpsc;
|
||||
use tokio_stream::wrappers::UnboundedReceiverStream;
|
||||
use tracing::{debug, error, trace, warn};
|
||||
use types::{
|
||||
BlobSidecar, DataColumnSidecar, EthSpec, ForkContext, SignedBeaconBlock,
|
||||
BlobSidecar, DataColumnSidecar, EthSpec, ForkContext, PartialDataColumn, SignedBeaconBlock,
|
||||
SignedExecutionPayloadEnvelope,
|
||||
};
|
||||
|
||||
@@ -72,6 +72,8 @@ pub enum RouterMessage<E: EthSpec> {
|
||||
/// message, the message itself and a bool which indicates if the message should be processed
|
||||
/// by the beacon chain after successful verification.
|
||||
PubsubMessage(MessageId, PeerId, PubsubMessage<E>, bool),
|
||||
/// A partial data column sidecar has been received via gossipsub partial protocol.
|
||||
PartialDataColumnSidecar(PeerId, Box<PartialDataColumn<E>>, GossipTopic),
|
||||
/// The peer manager has requested we re-status a peer.
|
||||
StatusPeer(PeerId),
|
||||
/// The peer has an updated custody group count from METADATA.
|
||||
@@ -183,6 +185,16 @@ impl<T: BeaconChainTypes> Router<T> {
|
||||
RouterMessage::PubsubMessage(id, peer_id, gossip, should_process) => {
|
||||
self.handle_gossip(id, peer_id, gossip, should_process);
|
||||
}
|
||||
RouterMessage::PartialDataColumnSidecar(peer_id, column, topic) => self
|
||||
.handle_beacon_processor_send_result(
|
||||
self.network_beacon_processor
|
||||
.send_gossip_partial_data_column_sidecar(
|
||||
peer_id,
|
||||
column,
|
||||
self.chain.slot_clock.now_duration().unwrap_or_default(),
|
||||
topic,
|
||||
),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user