Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFetcherAndProviderMismatchedState = errors.New("the fetcher and provider have diverged in finalized state")
Functions ¶
This section is empty.
Types ¶
type EthClient ¶
type EthClient interface { FinalizedBlockHeight() (*big.Int, error) BlockHeadersByRange(*big.Int, *big.Int) ([]*types.Header, error) RawRpcClient() *rpc.Client }
func NewEthClient ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
NewFetcher instantiates a new instance of Fetcher against the supplied rpc client. The Fetcher will start fetching blocks starting from the supplied header unless nil, indicating genesis.
Click to show internal directories.
Click to hide internal directories.