Struct ethcore_sync::SyncConfig
source · [−]pub struct SyncConfig {
pub max_download_ahead_blocks: usize,
pub download_old_blocks: bool,
pub network_id: u64,
pub subprotocol_name: ProtocolId,
pub fork_block: Option<(BlockNumber, H256)>,
pub warp_sync: WarpSync,
pub eip1559_transition: BlockNumber,
pub new_transactions_stats_period: u64,
}
Expand description
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: ProtocolId
Main “eth” subprotocol name.
fork_block: Option<(BlockNumber, H256)>
Fork block to check
warp_sync: WarpSync
Enable snapshot sync
eip1559_transition: BlockNumber
Number of first block where EIP-1559 rules begin. New encoding/decoding block format.
new_transactions_stats_period: u64
Number of blocks for which new transactions will be returned in a result of parity_newTransactionsStats
RPC call
Trait Implementations
sourceimpl Clone for SyncConfig
impl Clone for SyncConfig
sourcefn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SyncConfig
impl Debug for SyncConfig
sourceimpl Default for SyncConfig
impl Default for SyncConfig
sourcefn default() -> SyncConfig
fn default() -> SyncConfig
Returns the “default value” for a type. Read more
impl Copy for SyncConfig
Auto Trait Implementations
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnwindSafe for SyncConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more