Versions in this module Expand all Collapse all v6 v6.0.0 Dec 21, 2021 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() *big.Int + func (c *Chain) TotalDifficultyAt(height int) *big.Int + type Conn struct + func (c *Conn) Read() Message + func (c *Conn) Read66() (uint64, Message) + func (c *Conn) Write(msg Message) error + func (c *Conn) Write66(req eth.Packet, code int) 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) TestBlockHashAnnounce65(t *utesting.T) + func (s *Suite) TestBlockHashAnnounce66(t *utesting.T) + func (s *Suite) TestBroadcast65(t *utesting.T) + func (s *Suite) TestBroadcast66(t *utesting.T) + func (s *Suite) TestGetBlockBodies65(t *utesting.T) + func (s *Suite) TestGetBlockBodies66(t *utesting.T) + func (s *Suite) TestGetBlockHeaders65(t *utesting.T) + func (s *Suite) TestGetBlockHeaders66(t *utesting.T) + func (s *Suite) TestLargeAnnounce65(t *utesting.T) + func (s *Suite) TestLargeAnnounce66(t *utesting.T) + func (s *Suite) TestLargeTxRequest66(t *utesting.T) + func (s *Suite) TestMaliciousHandshake65(t *utesting.T) + func (s *Suite) TestMaliciousHandshake66(t *utesting.T) + func (s *Suite) TestMaliciousStatus65(t *utesting.T) + func (s *Suite) TestMaliciousStatus66(t *utesting.T) + func (s *Suite) TestMaliciousTx65(t *utesting.T) + func (s *Suite) TestMaliciousTx66(t *utesting.T) + func (s *Suite) TestNewPooledTxs66(t *utesting.T) + func (s *Suite) TestOldAnnounce65(t *utesting.T) + func (s *Suite) TestOldAnnounce66(t *utesting.T) + func (s *Suite) TestSameRequestID66(t *utesting.T) + func (s *Suite) TestSimultaneousRequests66(t *utesting.T) + func (s *Suite) TestStatus65(t *utesting.T) + func (s *Suite) TestStatus66(t *utesting.T) + func (s *Suite) TestTransaction65(t *utesting.T) + func (s *Suite) TestTransaction66(t *utesting.T) + func (s *Suite) TestZeroRequestID66(t *utesting.T) + type Transactions eth.TransactionsPacket + func (t Transactions) Code() int Other modules containing this package github.com/ubiq/go-ubiq/v3 github.com/ubiq/go-ubiq/v5 github.com/ubiq/go-ubiq/v7