mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-25 09:19:28 +00:00
15 lines
333 B
Go
15 lines
333 B
Go
package health
|
|
|
|
import (
|
|
"context"
|
|
"math/big"
|
|
|
|
"github.com/ethereum/go-ethereum"
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
)
|
|
|
|
type ethClient interface {
|
|
PeerCount(context.Context) (uint64, error)
|
|
BlockByNumber(context.Context, *big.Int) (*types.Block, error)
|
|
SyncProgress(context.Context) (*ethereum.SyncProgress, error)
|
|
}
|