mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Fork aware max values in rpc (#6847)
N/A In https://github.com/sigp/lighthouse/pull/6329 we changed `max_blobs_per_block` from a preset to a config value. We weren't using the right value based on fork in that PR. This is a follow up PR to use the fork dependent values. In the proces, I also updated other places where we weren't using fork dependent values from the ChainSpec. Note to reviewer: easier to go through by commit
This commit is contained in:
@@ -28,7 +28,7 @@ use std::sync::Arc;
|
||||
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
||||
use tokio::sync::mpsc;
|
||||
use tokio_stream::wrappers::UnboundedReceiverStream;
|
||||
use types::{BlobSidecar, DataColumnSidecar, EthSpec, SignedBeaconBlock};
|
||||
use types::{BlobSidecar, DataColumnSidecar, EthSpec, ForkContext, SignedBeaconBlock};
|
||||
|
||||
/// Handles messages from the network and routes them to the appropriate service to be handled.
|
||||
pub struct Router<T: BeaconChainTypes> {
|
||||
@@ -90,6 +90,7 @@ impl<T: BeaconChainTypes> Router<T> {
|
||||
invalid_block_storage: InvalidBlockStorage,
|
||||
beacon_processor_send: BeaconProcessorSend<T::EthSpec>,
|
||||
beacon_processor_reprocess_tx: mpsc::Sender<ReprocessQueueMessage>,
|
||||
fork_context: Arc<ForkContext>,
|
||||
log: slog::Logger,
|
||||
) -> Result<mpsc::UnboundedSender<RouterMessage<T::EthSpec>>, String> {
|
||||
let message_handler_log = log.new(o!("service"=> "router"));
|
||||
@@ -122,6 +123,7 @@ impl<T: BeaconChainTypes> Router<T> {
|
||||
network_send.clone(),
|
||||
network_beacon_processor.clone(),
|
||||
sync_recv,
|
||||
fork_context,
|
||||
sync_logger,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user