Events

LES Protocol Events

Events used for the LES peer protocols. These events derive from BaseEvent and can thus be consumed through the event bus.

class trinity.protocol.les.events.GetBlockHeadersEvent(session: p2p.abc.SessionAPI, command: p2p.abc.CommandAPI[typing.Any][Any])

Event to carry a GetBlockHeaders command from the peer pool to any process that subscribes the event through the event bus.

class trinity.protocol.les.events.SendBlockHeadersEvent(session: p2p.abc.SessionAPI, command: trinity.protocol.les.commands.BlockHeaders)

Event to proxy a LESPeer.sub_proto.send_block_headers call from a proxy peer to the actual peer that sits in the peer pool.