 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func DNSResolveHostname(ctx context.Context, n *enode.Node) (*enode.Node, error)
- type Client
- func (c Client) AccountRange(ctx context.Context, root, origin common.Hash, bytes uint64) (*snap.AccountRangePacket, error)
- func (c Client) AllAccountRanges(ctx context.Context, blockHash common.Hash, batchBytes uint64) ([]*snap.AccountRangePacket, error)
- func (c Client) Disconnect() error
- func (c Client) HeadersDownFrom(ctx context.Context, blockHash common.Hash, count uint64) ([]*types.Header, error)
- func (c Client) SnapshotRange(ctx context.Context, blockHash common.Hash, max uint64) (int, error)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
	// contains filtered or unexported fields
}
    Client represents an individual connection with a remote P2P Peer. This was adapted from go-ethereum/cmd/devp2p/internal/ethtest.
func Dial ¶
func Dial(ctx context.Context, key *ecdsa.PrivateKey, dest *enode.Node) (Client, *eth.StatusPacket, error)
Dial dials the provided destination and performs required handshakes and exchanges using the given private key returning a Client to and the status of that instance.
func (Client) AccountRange ¶
func (Client) AllAccountRanges ¶ added in v0.17.0
func (c Client) AllAccountRanges(ctx context.Context, blockHash common.Hash, batchBytes uint64) ([]*snap.AccountRangePacket, error)
AllAccountRanges returns all account ranges starting of the provided block hash (not state root).
func (Client) Disconnect ¶
 Click to show internal directories. 
   Click to hide internal directories.