Documentation ¶
Index ¶
Constants ¶
View Source
const BlockChainRpc = "https://evmrpc-test-us.0g.ai"
View Source
const ValidatorFile = "data/validator_rpcs.csv"
Variables ¶
This section is empty.
Functions ¶
func FindMaxBlockHeight ¶
func MustMonitorFromViper ¶
func MustMonitorFromViper()
Types ¶
type BlockchainHeightHealth ¶
type BlockchainHeightHealth struct {
// contains filtered or unexported fields
}
func (*BlockchainHeightHealth) Update ¶
func (bhh *BlockchainHeightHealth) Update(config health.TimedCounterConfig, height uint64)
type Config ¶
type Config struct { Nodes map[string]string Interval time.Duration `default:"60s"` AvailabilityReport health.TimedCounterConfig NodeHeightReport HeightReportConfig BlockchainHeightReport health.TimedCounterConfig Validators map[string]string ValidatorReport health.TimedCounterConfig PrivateKey string CosmosRPC string `default:"https://cosmosrpc-test.0g.ai/"` }
type HeightReportConfig ¶
type HeightReportConfig struct { health.TimedCounterConfig MaxGap uint64 `default:"30"` }
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func MustNewNode ¶
func (*Node) CheckHeight ¶
func (node *Node) CheckHeight(config *HeightReportConfig, target uint64)
func (*Node) UpdateHeight ¶
func (node *Node) UpdateHeight(config health.TimedCounterConfig)
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) CheckStatusSilence ¶
func (validator *Validator) CheckStatusSilence()
func (*Validator) Update ¶
func (validator *Validator) Update(config health.TimedCounterConfig)
Click to show internal directories.
Click to hide internal directories.