[][src]Trait grin_p2p::types::NetAdapter

pub trait NetAdapter: ChainAdapter {
    fn find_peer_addrs(&self, capab: Capabilities) -> Vec<SocketAddr>;
fn peer_addrs_received(&self, _: Vec<SocketAddr>);
fn peer_difficulty(&self, _: SocketAddr, _: Difficulty, _: u64);
fn is_banned(&self, addr: SocketAddr) -> bool; }

Additional methods required by the protocol that don't need to be externally implemented.

Required methods

Find good peers we know with the provided capability and return their addresses.

A list of peers has been received from one of our peers.

Heard total_difficulty from a connected peer (via ping/pong).

Is this peer currently banned?

Loading content...

Implementors

impl NetAdapter for DummyAdapter
[src]

impl NetAdapter for Peers
[src]

Find good peers we know with the provided capability and return their addresses.

A list of peers has been received from one of our peers.

Loading content...