feature: Choose checkpoints based on the config
@@ -27,7 +27,6 @@ use color_eyre::eyre::Report;
use tower::{buffer::Buffer, service_fn};
use zebra_chain::block::BlockHeaderHash;
-use zebra_chain::Network::*;
mod sync;
@@ -60,7 +59,7 @@ impl StartCmd {
let config = app_config();
let state = zebra_state::on_disk::init(config.state.clone());
let (peer_set, _address_book) = zebra_network::init(config.network.clone(), node).await;
- let verifier = zebra_consensus::chain::init(Mainnet, state.clone());
+ let verifier = zebra_consensus::chain::init(config.network.network, state.clone());
let mut syncer = sync::Syncer::new(peer_set, state, verifier);
