package
0.0.0-20220820134905-666a20ff9307
Repository: https://github.com/entropyio/go-entropy.git
Documentation: pkg.go.dev
# Functions
Handle is invoked whenever an `eth` connection is made that successfully passes the protocol handshake.
MakeProtocols constructs the P2P protocol definitions for `eth`.
NewPeer create a wrapper for a network connection and negotiated protocol version.
ServiceGetBlockBodiesQuery assembles the response to a body query.
ServiceGetBlockHeadersQuery assembles the response to a header query.
ServiceGetNodeDataQuery assembles the response to a node data query.
ServiceGetReceiptsQuery assembles the response to a receipt query.
StartENRUpdater starts the `eth` ENR updater loop, which listens for chain head events and updates the requested node record whenever a fork is passed.
# Constants
No description provided by the author
No description provided by the author
Constants to match up protocol versions and messages.
Constants to match up protocol versions and messages.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProtocolName is the official short name of the `eth` protocol used during devp2p capability negotiation.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ProtocolVersions are the supported versions of the `eth` protocol (first is primary).
# Structs
BlockBodiesPacket66 is the network packet for block content distribution over eth/66.
BlockBodiesRLPPacket66 is the BlockBodiesRLPPacket over eth/66.
BlockBody represents the data content of a single block.
BlockHeadersPacket66 represents a block header response over eth/66.
BlockHeadersRLPPacket66 represents a block header response over eth/66.
GetBlockBodiesPacket66 represents a block body query over eth/66.
GetBlockHeadersPacket represents a block header query.
GetBlockHeadersPacket66 represents a block header query over eth/66.
GetNodeDataPacket66 represents a trie node data query over eth/66.
No description provided by the author
GetReceiptsPacket66 represents a block receipts query over eth/66.
HashOrNumber is a combined field for specifying an origin block.
NewBlockPacket is the network packet for the block propagation message.
NodeDataPacket66 is the network packet for trie node data distribution over eth/66.
NodeInfo represents a short summary of the `eth` sub-protocol metadata known about the host peer.
Peer is a collection of relevant information we have about a `eth` peer.
PooledTransactionsPacket66 is the network packet for transaction distribution over eth/66.
PooledTransactionsRLPPacket66 is the eth/66 form of PooledTransactionsRLPPacket.
ReceiptsPacket66 is the network packet for block receipts distribution over eth/66.
ReceiptsRLPPacket66 is the eth-66 version of ReceiptsRLPPacket.
Request is a pending request to allow tracking it and delivering a response back to the requester on their chosen channel.
Response is a reply packet to a previously created request.
StatusPacket is the network packet for the status message for eth/64 and later.
# Interfaces
Backend defines the data retrieval methods to serve remote requests and the callback methods to invoke on remote deliveries.
No description provided by the author
Packet represents a p2p message in the `eth` protocol.
TxPool defines the methods needed by the protocol handler to serve transactions.
# Type aliases
BlockBodiesPacket is the network packet for block content distribution.
BlockBodiesRLPPacket is used for replying to block body requests, in cases where we already have them RLP-encoded, and thus can avoid the decode-encode roundtrip.
BlockHeadersPacket represents a block header response.
BlockHeadersRLPPacket represents a block header response, to use when we already have the headers rlp encoded.
GetBlockBodiesPacket represents a block body query.
GetNodeDataPacket represents a trie node data query.
GetPooledTransactionsPacket represents a transaction query.
GetReceiptsPacket represents a block receipts query.
Handler is a callback to invoke from an outside runner after the boilerplate exchanges have passed.
NewBlockHashesPacket is the network packet for the block announcements.
NewPooledTransactionHashesPacket represents a transaction announcement packet.
NodeDataPacket is the network packet for trie node data distribution.
PooledTransactionsPacket is the network packet for transaction distribution.
PooledTransactionsRLPPacket is the network packet for transaction distribution, used in the cases we already have them in rlp-encoded form.
ReceiptsPacket is the network packet for block receipts distribution.
ReceiptsRLPPacket is used for receipts, when we already have it encoded.
TransactionsPacket is the network packet for broadcasting new transactions.