Struct ethsync::SyncConfig
[−]
[src]
pub struct SyncConfig { pub max_download_ahead_blocks: usize, pub download_old_blocks: bool, pub network_id: u64, pub subprotocol_name: [u8; 3], pub light_subprotocol_name: [u8; 3], pub fork_block: Option<(BlockNumber, H256)>, pub warp_sync: bool, pub serve_light: bool, }
Sync configuration
Fields
max_download_ahead_blocks: usize
Max blocks to download ahead
download_old_blocks: bool
Enable ancient block download.
network_id: u64
Network ID
subprotocol_name: [u8; 3]
Main "eth" subprotocol name.
light_subprotocol_name: [u8; 3]
Light "les" subprotocol name.
fork_block: Option<(BlockNumber, H256)>
Fork block to check
warp_sync: bool
Enable snapshot sync
serve_light: bool
Enable light client server.
Trait Implementations
impl Debug for SyncConfig
[src]
impl Clone for SyncConfig
[src]
fn clone(&self) -> SyncConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for SyncConfig
[src]
impl Default for SyncConfig
[src]
fn default() -> SyncConfig
Returns the "default value" for a type. Read more
impl BinaryConvertable for SyncConfig where SyncConfig: Copy
fn from_bytes(bytes: &[u8],
_length_stack: &mut VecDeque<usize>)
-> Result<Self, BinaryConvertError>
_length_stack: &mut VecDeque<usize>)
-> Result<Self, BinaryConvertError>
fn to_bytes(&self,
buffer: &mut [u8],
_length_stack: &mut VecDeque<usize>)
-> Result<(), BinaryConvertError>
buffer: &mut [u8],
_length_stack: &mut VecDeque<usize>)
-> Result<(), BinaryConvertError>