diff --git a/validator_client/validator_services/src/block_service.rs b/validator_client/validator_services/src/block_service.rs index 24c9ba5945..1f9197ec35 100644 --- a/validator_client/validator_services/src/block_service.rs +++ b/validator_client/validator_services/src/block_service.rs @@ -51,7 +51,7 @@ pub struct BlockServiceBuilder { beacon_nodes: Option>>, proposer_nodes: Option>>, executor: Option, - chain_spec: Option, + chain_spec: Option>, graffiti: Option, graffiti_file: Option, } @@ -95,6 +95,11 @@ impl, T: SlotClock + 'static, E: EthSpec> BlockServiceBuild self } + pub fn chain_spec(mut self, chain_spec: Arc) -> Self { + self.chain_spec = Some(chain_spec); + self + } + pub fn graffiti(mut self, graffiti: Option) -> Self { self.graffiti = graffiti; self @@ -189,7 +194,7 @@ pub struct Inner { pub beacon_nodes: Arc>, pub proposer_nodes: Option>>, executor: TaskExecutor, - chain_spec: ChainSpec, + chain_spec: Arc, graffiti: Option, graffiti_file: Option, }