Documentation ¶
Index ¶
Constants ¶
View Source
const ( TronBlockDelay = 25 TronDelayBlockWarn = 3000 TronRestartDelayBlock = 28800 TronHome = "$HOME/.tronBridge" )
View Source
const ( BatchSendMsgCount = 100 ThresholdVotePower = totalPower * thresholdVotePowerProportion / 100 )
View Source
const FxAvgBlockMillisecond = 6 * time.Second
View Source
const Tron = "tron"
Variables ¶
View Source
var BlockHeightProm = prometheus.NewGauge(prometheus.GaugeOpts{Subsystem: "eth_bridge_oracle", Name: "sync_block_height"})
View Source
var BlockIntervalProm = prometheus.NewGauge(prometheus.GaugeOpts{Subsystem: "eth_bridge_oracle", Name: "query_log_block_interval"})
View Source
var BuildTime string
View Source
var Commit string
View Source
var FxKeyBalanceProm = prometheus.NewGauge(prometheus.GaugeOpts{Subsystem: "", Name: "fx_key_balance"})
View Source
var FxSubmitBatchSignProm = prometheus.NewCounter(prometheus.CounterOpts{Subsystem: "", Name: "submit_batch_sign"})
View Source
var FxUpdateOracleSetProm = prometheus.NewCounter(prometheus.CounterOpts{Subsystem: "", Name: "update_oracle_set_sign"})
View Source
var MsgPendingLenProm = prometheus.NewCounter(prometheus.CounterOpts{Subsystem: "eth_bridge_oracle", Name: "msg_pending_count"})
View Source
var Version string
Functions ¶
func NewVersionCmd ¶
func StartBridgePrometheus ¶
func StartBridgePrometheus()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.