beacon_node: add --disable-deposit-contract-sync flag (#3597)

Overrides any previous option that enables the eth1 service.
Useful for operating a `light` beacon node.

Co-authored-by: Michael Sproul <micsproul@gmail.com>
This commit is contained in:
pinkiebell
2022-10-19 22:55:49 +00:00
parent c5cd0d9b3f
commit d0efb6b18a
4 changed files with 50 additions and 1 deletions

View File

@@ -457,7 +457,9 @@ where
ClientGenesis::FromStore => builder.resume_from_db().map(|v| (v, None))?,
};
self.eth1_service = eth1_service_option;
if config.sync_eth1_chain {
self.eth1_service = eth1_service_option;
}
self.beacon_chain_builder = Some(beacon_chain_builder);
Ok(self)
}