tangle

package
v2.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgTangleSyncedAtStartup defines the LMI is set to CMI at startup.
	CfgTangleSyncedAtStartup = "syncedAtStartup"
	// CfgTangleRevalidateDatabase defines whether to revalidate the database on startup if corrupted.
	CfgTangleRevalidateDatabase = "revalidate"
)

Variables

View Source
var (
	CoreComponent *app.CoreComponent

	// ErrDatabaseRevalidationFailed is return when the database revalidation failed.
	//
	//nolint:revive // this error message is shown to the user
	ErrDatabaseRevalidationFailed = errors.New("Database revalidation failed! Please delete the database folder and start with a new snapshot.")
)
View Source
var ParamsTangle = &ParametersTangle{}

Functions

This section is empty.

Types

type ParametersTangle

type ParametersTangle struct {
	// MilestoneTimeout is the interval milestone timeout events are fired if no new milestones are received.
	MilestoneTimeout time.Duration `default:"30s" usage:"the interval milestone timeout events are fired if no new milestones are received"`
	// MaxDeltaBlockYoungestConeRootIndexToCMI is the maximum allowed delta
	// value for the YCRI of a given block in relation to the current CMI before it gets lazy.
	MaxDeltaBlockYoungestConeRootIndexToCMI int `` /* 132-byte string literal not displayed */
	// MaxDeltaBlockOldestConeRootIndexToCMI is the maximum allowed delta
	// value between OCRI of a given block in relation to the current CMI before it gets semi-lazy.
	MaxDeltaBlockOldestConeRootIndexToCMI int `` /* 138-byte string literal not displayed */
	// WhiteFlagParentsSolidTimeout is the maximum duration for the parents to become solid during white flag confirmation API or INX call.
	WhiteFlagParentsSolidTimeout time.Duration `` /* 132-byte string literal not displayed */
}

ParametersTangle contains the definition of the parameters used by tangle.

Jump to

Keyboard shortcuts

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