fairsync

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FnSyncer

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

func NewFnSyncer

func NewFnSyncer(fn fnode, port string) *FnSyncer

func (*FnSyncer) Address

func (fs *FnSyncer) Address() string

func (*FnSyncer) FairnodeLeagues

func (fs *FnSyncer) FairnodeLeagues() map[common.Hash]*Leagues

func (*FnSyncer) Start

func (fs *FnSyncer) Start(db database)

func (*FnSyncer) Stop

func (fs *FnSyncer) Stop()

func (*FnSyncer) SyncErrChannel

func (fs *FnSyncer) SyncErrChannel() chan error

func (*FnSyncer) SyncMessageChannel

func (fs *FnSyncer) SyncMessageChannel() chan []Leagues

type FnType

type FnType uint64
const (
	PENDING FnType = iota
	FN_LEADER
	FN_FOLLOWER
)

func (FnType) String

func (t FnType) String() string

type Leagues

type Leagues struct {
	OtprnHash common.Hash
	Status    types.FnStatus
}

Jump to

Keyboard shortcuts

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