Struct ethsync::light_sync::LightSync [] [src]

pub struct LightSync<L: LightChainClient> { /* fields omitted */ }

Light client synchronization manager. See module docs for more details.

Methods

impl<L: LightChainClient> LightSync<L>
[src]

Create a new instance of LightSync.

This won't do anything until registered as a handler so it can act on events.

Trait Implementations

impl<L: LightChainClient> Handler for LightSync<L>
[src]

Called when a peer connects.

Called when a peer disconnects, with a list of unfulfilled request IDs as of yet. Read more

Called when a peer makes an announcement.

Called when a peer responds with block headers.

Called to "tick" the handler periodically.

Called when a peer requests relay of some transactions.

Called when a peer responds with block bodies.

Called when a peer responds with block receipts.

Called when a peer responds with state proofs. Each proof should be a series of trie nodes in ascending order by distance from the root. Read more

Called when a peer responds with contract code.

Called when a peer responds with header proofs. Each proof should be a block header coupled with a series of trie nodes is ascending order by distance from the root. Read more

Called on abort. This signals to handlers that they should clean up and ignore peers. Read more