erigon-pulse/cmd/tester/interfaces.go

18 lines
378 B
Go
Raw Normal View History

package main
import (
"math/big"
"github.com/ledgerwatch/turbo-geth/common"
"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)
TotalDifficulty() *big.Int
LastBlock() *types.Block
}