Syncer

/// Starts the syncing loop, just spawns two threads that loop forever

pub struct Syncer {}

BodySyncInfo

struct BodySyncInfo {
    sync_start_ts: DateTime<Utc>,
    body_sync_hashes: Vec<Hash>,
    prev_body_received: Option<DateTime<Utc>>,
    prev_tip: chain::Tip,
    prev_orphans_len: usize,
}

SyncInfo

// Utility struct to group what information the main sync loop has to track
struct SyncInfo {
    prev_body_sync: (DateTime<Utc>, u64),
    prev_header_sync: (DateTime<Utc>, u64, u64),
    prev_fast_sync: Option<DateTime<Utc>>,
    highest_height: u64,
}

results matching ""

    No results matching ""