Struct ethsync::EthSync [] [src]

pub struct EthSync { /* fields omitted */ }

Ethereum network protocol handler

Methods

impl EthSync
[src]

Creates and register protocol with the network service

Trait Implementations

impl SyncProvider for EthSync
[src]

Get sync status

Get sync peers

Get the enode if available.

Returns propagation count for pending transactions.

impl ChainNotify for EthSync
[src]

fires when chain has new blocks.

fires when chain achieves active mode

fires when chain achieves passive mode

fires when chain broadcasts a message

fires when new transactions are received from a peer

impl ManageNetwork for EthSync
[src]

Set to allow unreserved peers to connect

Set to deny unreserved peers to connect

Remove reservation for the peer

Add reserved peer

Start network

Stop network

Query the current configuration of the network