pub struct ReorgConfig {
pub window_size: usize,
pub safe_depth: u64,
pub use_finalized_tag: bool,
}Expand description
Configuration for the reorg detector.
Fields§
§window_size: usizeNumber of blocks to keep in the sliding window (default: 128).
safe_depth: u64Minimum block depth before considering a block “safe” (default: 64).
use_finalized_tag: boolWhether to use “finalized” block tag for safe block (default: true).
Trait Implementations§
Source§impl Clone for ReorgConfig
impl Clone for ReorgConfig
Source§fn clone(&self) -> ReorgConfig
fn clone(&self) -> ReorgConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReorgConfig
impl Debug for ReorgConfig
Auto Trait Implementations§
impl Freeze for ReorgConfig
impl RefUnwindSafe for ReorgConfig
impl Send for ReorgConfig
impl Sync for ReorgConfig
impl Unpin for ReorgConfig
impl UnsafeUnpin for ReorgConfig
impl UnwindSafe for ReorgConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more