Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2023 Changes in this version + type AccountRange snap.AccountRangePacket + func (msg AccountRange) Code() int + func (msg AccountRange) ReqID() uint64 + type BlockBodies eth.BlockBodiesPacket66 + func (msg BlockBodies) Code() int + func (msg BlockBodies) ReqID() uint64 + type BlockHeaders eth.BlockHeadersPacket66 + func (msg BlockHeaders) Code() int + func (msg BlockHeaders) ReqID() uint64 + type ByteCodes snap.ByteCodesPacket + func (msg ByteCodes) Code() int + func (msg ByteCodes) ReqID() uint64 + type Chain struct + func (c *Chain) ForkID() forkid.ID + func (c *Chain) GetHeaders(req *GetBlockHeaders) ([]*types.Header, error) + func (c *Chain) Head() *types.Block + func (c *Chain) Len() int + func (c *Chain) RootAt(height int) common.Hash + 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) ReadSnap(id uint64) (Message, error) + func (c *Conn) Write(msg Message) error + type Disconnect struct + Reason p2p.DiscReason + func (msg Disconnect) Code() int + func (msg Disconnect) ReqID() uint64 + type Error struct + func (e *Error) Code() int + func (e *Error) Error() string + func (e *Error) ReqID() uint64 + func (e *Error) String() string + func (e *Error) Unwrap() error + type GetAccountRange snap.GetAccountRangePacket + func (msg GetAccountRange) Code() int + func (msg GetAccountRange) ReqID() uint64 + type GetBlockBodies eth.GetBlockBodiesPacket66 + func (msg GetBlockBodies) Code() int + func (msg GetBlockBodies) ReqID() uint64 + type GetBlockHeaders eth.GetBlockHeadersPacket66 + func (msg GetBlockHeaders) Code() int + func (msg GetBlockHeaders) ReqID() uint64 + type GetByteCodes snap.GetByteCodesPacket + func (msg GetByteCodes) Code() int + func (msg GetByteCodes) ReqID() uint64 + type GetPooledTransactions eth.GetPooledTransactionsPacket66 + func (msg GetPooledTransactions) Code() int + func (msg GetPooledTransactions) ReqID() uint64 + type GetStorageRanges snap.GetStorageRangesPacket + func (msg GetStorageRanges) Code() int + func (msg GetStorageRanges) ReqID() uint64 + type GetTrieNodes snap.GetTrieNodesPacket + func (msg GetTrieNodes) Code() int + func (msg GetTrieNodes) ReqID() uint64 + type Hello struct + Caps []p2p.Cap + ID []byte + ListenPort uint64 + Name string + Rest []rlp.RawValue + Version uint64 + func (msg Hello) Code() int + func (msg Hello) ReqID() uint64 + type Message interface + Code func() int + ReqID func() uint64 + type NewBlock eth.NewBlockPacket + func (msg NewBlock) Code() int + func (msg NewBlock) ReqID() uint64 + type NewBlockHashes eth.NewBlockHashesPacket + func (msg NewBlockHashes) Code() int + func (msg NewBlockHashes) ReqID() uint64 + type NewPooledTransactionHashes eth.NewPooledTransactionHashesPacket68 + func (msg NewPooledTransactionHashes) Code() int + func (msg NewPooledTransactionHashes) ReqID() uint64 + type NewPooledTransactionHashes66 eth.NewPooledTransactionHashesPacket66 + func (msg NewPooledTransactionHashes66) Code() int + func (msg NewPooledTransactionHashes66) ReqID() uint64 + type Ping struct + func (msg Ping) Code() int + func (msg Ping) ReqID() uint64 + type Pong struct + func (msg Pong) Code() int + func (msg Pong) ReqID() uint64 + type PooledTransactions eth.PooledTransactionsPacket66 + func (msg PooledTransactions) Code() int + func (msg PooledTransactions) ReqID() uint64 + type Status eth.StatusPacket + func (msg Status) Code() int + func (msg Status) ReqID() uint64 + type StorageRanges snap.StorageRangesPacket + func (msg StorageRanges) Code() int + func (msg StorageRanges) ReqID() uint64 + type Suite struct + Dest *enode.Node + func NewSuite(dest *enode.Node, chainfile string, genesisfile string) (*Suite, error) + func (s *Suite) EthTests() []utesting.Test + func (s *Suite) SnapTests() []utesting.Test + func (s *Suite) TestBlockHashAnnounce(t *utesting.T) + func (s *Suite) TestBroadcast(t *utesting.T) + func (s *Suite) TestGetBlockBodies(t *utesting.T) + func (s *Suite) TestGetBlockHeaders(t *utesting.T) + func (s *Suite) TestLargeAnnounce(t *utesting.T) + func (s *Suite) TestLargeTxRequest(t *utesting.T) + func (s *Suite) TestMaliciousHandshake(t *utesting.T) + func (s *Suite) TestMaliciousStatus(t *utesting.T) + func (s *Suite) TestMaliciousTx(t *utesting.T) + func (s *Suite) TestNewPooledTxs(t *utesting.T) + func (s *Suite) TestOldAnnounce(t *utesting.T) + func (s *Suite) TestSameRequestID(t *utesting.T) + func (s *Suite) TestSimultaneousRequests(t *utesting.T) + func (s *Suite) TestSnapGetAccountRange(t *utesting.T) + func (s *Suite) TestSnapGetByteCodes(t *utesting.T) + func (s *Suite) TestSnapGetStorageRanges(t *utesting.T) + func (s *Suite) TestSnapStatus(t *utesting.T) + func (s *Suite) TestSnapTrieNodes(t *utesting.T) + func (s *Suite) TestStatus(t *utesting.T) + func (s *Suite) TestTransaction(t *utesting.T) + func (s *Suite) TestZeroRequestID(t *utesting.T) + type Transactions eth.TransactionsPacket + func (msg Transactions) Code() int + func (msg Transactions) ReqID() uint64 + type TrieNodes snap.TrieNodesPacket + func (msg TrieNodes) Code() int + func (msg TrieNodes) ReqID() uint64