mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
436493350e
1. changes sentinel to use an http-like interface 2. moves hexutil, crypto/blake2b, metrics packages to erigon-lib
18 lines
391 B
Go
18 lines
391 B
Go
package health
|
|
|
|
import (
|
|
"context"
|
|
"github.com/ledgerwatch/erigon-lib/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)
|
|
Syncing(ctx context.Context) (interface{}, error)
|
|
}
|