mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
18 lines
378 B
Go
18 lines
378 B
Go
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
|
|
}
|