1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2020 Conflux Foundation. All rights reserved.
// Conflux is free software and distributed under GNU General Public License.
// See http://www.gnu.org/licenses/

use std::time::Duration;

#[derive(Clone)]
pub struct Configuration {
    // header sync parameters
    pub header_request_batch_size: Option<usize>,
    pub header_request_timeout: Option<Duration>,
    pub max_headers_in_flight: Option<usize>,

    // epoch sync parameters
    pub epoch_request_batch_size: Option<usize>,
    pub epoch_request_timeout: Option<Duration>,
    pub max_parallel_epochs_to_request: Option<usize>,
    pub num_epochs_to_request: Option<usize>,
    pub num_waiting_headers_threshold: Option<usize>,
}