feature: Choose checkpoints based on the config

This commit is contained in:
teor 2020-07-21 15:38:22 +10:00
parent 3d721a96a5
commit 9b97ebbd61
1 changed files with 1 additions and 2 deletions

View File

@ -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);