Versions in this module Expand all Collapse all v1 v1.1.8 Jan 8, 2022 Changes in this version + type BlockBodies eth.BlockBodiesPacket + func (bb BlockBodies) Code() int + type BlockHeaders eth.BlockHeadersPacket + func (bh BlockHeaders) Code() int + type Chain struct + func (c *Chain) ForkID() forkid.ID + func (c *Chain) GetHeaders(req GetBlockHeaders) (BlockHeaders, error) + func (c *Chain) Head() *types.Block + func (c *Chain) Len() int + func (c *Chain) Shorten(height int) *Chain + func (c *Chain) TD(height int) *big.Int + func (c *Chain) WriteTo(writer io.Writer) error + type Conn struct + func (c *Conn) Read() Message + func (c *Conn) ReadAndServe(chain *Chain, timeout time.Duration) Message + func (c *Conn) Write(msg Message) error + type Disconnect struct + Reason p2p.DiscReason + func (d Disconnect) Code() int + type Error struct + func (e *Error) Code() int + func (e *Error) Error() string + func (e *Error) String() string + func (e *Error) Unwrap() error + type GetBlockBodies eth.GetBlockBodiesPacket + func (gbb GetBlockBodies) Code() int + type GetBlockHeaders eth.GetBlockHeadersPacket + func (g GetBlockHeaders) Code() int + type GetPooledTransactions eth.GetPooledTransactionsPacket + func (gpt GetPooledTransactions) Code() int + type Hello struct + Caps []p2p.Cap + ID []byte + ListenPort uint64 + Name string + Rest []rlp.RawValue + Version uint64 + func (h Hello) Code() int + type Message interface + Code func() int + type NewBlock eth.NewBlockPacket + func (nb NewBlock) Code() int + type NewBlockHashes eth.NewBlockHashesPacket + func (nbh NewBlockHashes) Code() int + type NewPooledTransactionHashes eth.NewPooledTransactionHashesPacket + func (nb NewPooledTransactionHashes) Code() int + type Ping struct + func (p Ping) Code() int + type Pong struct + func (p Pong) Code() int + type PooledTransactions eth.PooledTransactionsPacket + func (pt PooledTransactions) Code() int + type Status eth.StatusPacket + func (s Status) Code() int + type Suite struct + Dest *enode.Node + func NewSuite(dest *enode.Node, chainfile string, genesisfile string) (*Suite, error) + func (s *Suite) AllEthTests() []utesting.Test + func (s *Suite) Eth66Tests() []utesting.Test + func (s *Suite) EthTests() []utesting.Test + func (s *Suite) Is_66(t *utesting.T) + func (s *Suite) TestBroadcast(t *utesting.T) + func (s *Suite) TestBroadcast_66(t *utesting.T) + func (s *Suite) TestGetBlockBodies(t *utesting.T) + func (s *Suite) TestGetBlockBodies_66(t *utesting.T) + func (s *Suite) TestGetBlockHeaders(t *utesting.T) + func (s *Suite) TestGetBlockHeaders_66(t *utesting.T) + func (s *Suite) TestLargeAnnounce(t *utesting.T) + func (s *Suite) TestLargeAnnounce_66(t *utesting.T) + func (s *Suite) TestLargeTxRequest_66(t *utesting.T) + func (s *Suite) TestMaliciousHandshake(t *utesting.T) + func (s *Suite) TestMaliciousHandshake_66(t *utesting.T) + func (s *Suite) TestMaliciousStatus(t *utesting.T) + func (s *Suite) TestMaliciousStatus_66(t *utesting.T) + func (s *Suite) TestMaliciousTx(t *utesting.T) + func (s *Suite) TestMaliciousTx_66(t *utesting.T) + func (s *Suite) TestNewPooledTxs_66(t *utesting.T) + func (s *Suite) TestOldAnnounce(t *utesting.T) + func (s *Suite) TestOldAnnounce_66(t *utesting.T) + func (s *Suite) TestSameRequestID_66(t *utesting.T) + func (s *Suite) TestSimultaneousRequests_66(t *utesting.T) + func (s *Suite) TestStatus(t *utesting.T) + func (s *Suite) TestStatus_66(t *utesting.T) + func (s *Suite) TestTransaction(t *utesting.T) + func (s *Suite) TestTransaction_66(t *utesting.T) + func (s *Suite) TestZeroRequestID_66(t *utesting.T) + type Transactions eth.TransactionsPacket + func (t Transactions) Code() int