erigon-pulse/cmd/rpcdaemon/health/interfaces.go

17 lines
336 B
Go
Raw Normal View History

2021-09-28 09:27:57 +00:00
package health
import (
"context"
"github.com/ledgerwatch/erigon/common/hexutil"
"github.com/ledgerwatch/erigon/rpc"
)
type NetAPI interface {
PeerCount(_ context.Context) (hexutil.Uint, error)
}
type EthAPI interface {
GetBlockByNumber(_ context.Context, number rpc.BlockNumber, fullTx bool) (map[string]interface{}, error)
}