Trait vapcore_sync::SyncProvider[][src]

pub trait SyncProvider: Send + Sync {
    fn status(&self) -> VapSyncStatus;
fn peers(&self) -> Vec<PeerInfo>;
fn enode(&self) -> Option<String>;
fn sync_notification(&self) -> Notification<SyncState>;
fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats>;
fn is_major_syncing(&self) -> bool; }

Current sync status

Required methods

fn status(&self) -> VapSyncStatus[src]

Get sync status

fn peers(&self) -> Vec<PeerInfo>[src]

Get peers information

fn enode(&self) -> Option<String>[src]

Get the enode if available.

fn sync_notification(&self) -> Notification<SyncState>[src]

gets sync status notifications

fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats>[src]

Returns propagation count for pending transactions.

fn is_major_syncing(&self) -> bool[src]

are we in the middle of a major sync?

Loading content...

Implementors

impl SyncProvider for VapSync[src]

fn status(&self) -> VapSyncStatus[src]

Get sync status

fn peers(&self) -> Vec<PeerInfo>[src]

Get sync peers

Loading content...