state

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSign        = errors.New("invalid signature")
	ErrFuncNotFound       = errors.New("function is not found")
	ErrRevealIsExist      = errors.New("reveal is exist")
	ErrCommitIsExist      = errors.New("commit is exist")
	ErrCommitIsNotExist   = errors.New("commit is not exist")
	ErrInvalidReveal      = errors.New("invalid reveal")
	ErrNewRound           = errors.New("round is exist")
	ErrAddOracleInNebula  = errors.New("oracle was added in nebula")
	ErrInvalidScore       = errors.New("invalid score. score <= 0")
	ErrInvalidChainType   = errors.New("invalid chain type")
	ErrInvalidHeight      = errors.New("invalid height")
	ErrInvalidSubRound    = errors.New("invalid sub round")
	ErrInvalidNebulaOwner = errors.New("invalid nebula owner")
	ErrNebulaNotFound     = errors.New("nebula not found")
	ErrSignIsExist        = errors.New("sign is exist")
	ErrRoundIsExist       = errors.New("round is exist")
)

Functions

Types

type SubRound

type SubRound int64
const (
	CommitSubRound SubRound = iota
	RevealSubRound
	ResultSubRound
	SendToTargetChain

	SubRoundCount = 4

	RoundInterval = 2
)

func CalculateSubRound

func CalculateSubRound(id uint64) SubRound

Jump to

Keyboard shortcuts

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