reportstatus

package
v0.0.0-...-9fdd194 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportStatusTime = 10 * time.Minute
)

Variables

This section is empty.

Functions

func CmdReportStatus

func CmdReportStatus() error

Types

type Service

type Service interface {
	// ReportStatus report status heart info to statusContract
	ReportStatus() (common.Hash, error)

	// CheckReportStatus check report status heart info to statusContract
	CheckReportStatus() error

	// CheckLastOnlineInfo check last online info.
	CheckLastOnlineInfo(peerId, bttcAddr string) error
}

func Init

func Init(transactionService transaction.Service, cfg *config.Config, statusAddress common.Address) Service

func New

func New(statusAddress common.Address, transactionService transaction.Service, cfg *config.Config) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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