erigon-pulse/cmd/tester/interfaces.go

23 lines
565 B
Go
Raw Normal View History

package main
import (
"math/big"
"github.com/ledgerwatch/turbo-geth/common"
"github.com/ledgerwatch/turbo-geth/core/forkid"
"github.com/ledgerwatch/turbo-geth/core/types"
)
type BlockFeeder interface {
Close()
GetHeaderByHash(hash common.Hash) *types.Header
GetHeaderByNumber(number uint64) *types.Header
GetBlockByHash(hash common.Hash) (*types.Block, error)
GetBlockByNumber(number uint64) (*types.Block, error)
GetTdByNumber(number uint64) *big.Int
TotalDifficulty() *big.Int
LastBlock() *types.Block
ForkID() forkid.ID
Genesis() *types.Block
}