Documentation ¶
Index ¶
Constants ¶
View Source
const MAX_BATCH_SIZE = 100
Variables ¶
View Source
var ErrEmptyHeader = errors.New("empty header returned over RPC")
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher is the underlying type which satisfies the core.Fetcher interface for go-ethereum
func NewFetcher ¶
NewFetcher returns a new Fetcher
func (*Fetcher) GetHeaderByNumber ¶
GetHeaderByNumber fetches the header for the provided block number
func (*Fetcher) GetHeadersByNumbers ¶
GetHeadersByNumbers batch fetches all of the headers for the provided block numbers
Click to show internal directories.
Click to hide internal directories.