relayer

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: LGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IgnoredTimeGap                      = 1800
	BatchSize                           = 100
	SleepMillisecondBetweenBatchTrackTx = 500
	SleepMillisecondBetweenEachTrackTx  = 10
	HeightBehindThreshold               = 10
)
View Source
const (
	AutomaticClaimPeriod = 60 * time.Second
)
View Source
const (
	MaxBatchSize = 30
)
View Source
const (
	RetryInterval = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DoubleSignMonitor

type DoubleSignMonitor struct {
	// contains filtered or unexported fields
}

type Relayer

type Relayer struct {
	// contains filtered or unexported fields
}

func NewRelayer

func NewRelayer(db *gorm.DB, cfg *config.Config, bbcExecutor *executor.BBCExecutor, bscExecutor *executor.BSCExecutor) *Relayer

func (*Relayer) Start

func (r *Relayer) Start(startHeight uint64, curValidatorsHash cmn.HexBytes)

func (*Relayer) WatchBcValidatorSetChange

func (r *Relayer) WatchBcValidatorSetChange()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL