mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 12:11:59 +00:00
Improve single-node testnet support and Arc NetworkConfig/ChainSpec (#6396)
* Arc ChainSpec and NetworkConfig * Fix release tests * Fix lint * Merge remote-tracking branch 'origin/unstable' into single-node-testnet
This commit is contained in:
@@ -119,7 +119,7 @@ impl<E: EthSpec> ProductionBeaconNode<E> {
|
||||
let slasher = Arc::new(
|
||||
Slasher::open(
|
||||
slasher_config,
|
||||
Arc::new(spec),
|
||||
spec,
|
||||
log.new(slog::o!("service" => "slasher")),
|
||||
)
|
||||
.map_err(|e| format!("Slasher open error: {:?}", e))?,
|
||||
@@ -174,7 +174,7 @@ impl<E: EthSpec> ProductionBeaconNode<E> {
|
||||
|
||||
builder
|
||||
.build_beacon_chain()?
|
||||
.network(&client_config.network)
|
||||
.network(Arc::new(client_config.network))
|
||||
.await?
|
||||
.notifier()?
|
||||
.http_metrics_config(client_config.http_metrics.clone())
|
||||
|
||||
Reference in New Issue
Block a user