mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
17 lines
336 B
Go
17 lines
336 B
Go
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)
|
|
}
|