mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
3359ba7a04
* no pools * Remove excessive logging * Revert * Initial commit * Cleanup * Fix some compile errors * Fix core tests * Fix more tests * Fix eth/downloader * go mod tidy * Fix core/vm * Fix formatting * Fix formatting * Fix lint * Fix lint * Switch tests to StagedSync * Cleanup * Reuse cache in stage4 * Fix * Fix formatting * Try to fix test
21 lines
496 B
Go
21 lines
496 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)
|
|
GetBlockByNumber(number uint64) (*types.Block, error)
|
|
GetTdByNumber(number uint64) *big.Int
|
|
TotalDifficulty() *big.Int
|
|
LastBlock() *types.Block
|
|
Genesis() *types.Block
|
|
}
|