go-ethereum/health/interface.go
crypto-services cc3cd2f775 Add testing
2024-02-20 14:35:41 +08:00

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)
}