Documentation ¶
Index ¶
- Constants
- Variables
- func ConfirmedMilestoneCaller(handler interface{}, params ...interface{})
- func GetSolidifierMilestoneIndex() milestone.Index
- func IsNodeHealthy() bool
- func IsReceiveTxWorkerPoolBusy() bool
- func NewConfirmedMilestoneMetricCaller(handler interface{}, params ...interface{})
- func SetUpdateSyncedAtStartup(updateSynced bool)
- func TriggerSolidifier()
- func WaitForTangleProcessorStartup()
- type ConfirmedMilestoneMetric
Constants ¶
View Source
const ( HeartbeatSentInterval = 30 * time.Second HeartbeatReceiveTimeout = 100 * time.Second )
Variables ¶
View Source
var ( PLUGIN = node.NewPlugin("Tangle", node.Enabled, configure, run) ErrDatabaseRevalidationFailed = errors.New("Database revalidation failed! Please delete the database folder and start with a new local snapshot.") )
View Source
var ( ErrSnapshotInfoMissing = errors.New("snapshot information not found in database") ErrLatestMilestoneOlderThanSnapshotIndex = errors.New("latest milestone in the database is older than the snapshot index") ErrSnapshotIndexWrong = errors.New("snapshot index does not fit the snapshot ledger index") )
View Source
var ( ErrMilestoneNotFound = errors.New("milestone not found") ErrDivisionByZero = errors.New("division by zero") ErrMissingMilestoneFound = errors.New("missing milestone found") )
View Source
var Events = pluginEvents{ ReceivedNewTransaction: events.NewEvent(tangle.NewTransactionCaller), ReceivedKnownTransaction: events.NewEvent(tangle.TransactionCaller), ProcessedTransaction: events.NewEvent(tangle.TransactionHashCaller), TransactionSolid: events.NewEvent(tangle.TransactionHashCaller), TransactionConfirmed: events.NewEvent(tangle.TransactionConfirmedCaller), TransactionStored: events.NewEvent(tangle.TransactionCaller), BundleSolid: events.NewEvent(tangle.BundleCaller), ReceivedNewMilestone: events.NewEvent(tangle.BundleCaller), LatestMilestoneChanged: events.NewEvent(tangle.BundleCaller), LatestMilestoneIndexChanged: events.NewEvent(milestone.IndexCaller), MilestoneConfirmed: events.NewEvent(ConfirmedMilestoneCaller), SolidMilestoneChanged: events.NewEvent(tangle.BundleCaller), SolidMilestoneIndexChanged: events.NewEvent(milestone.IndexCaller), SnapshotMilestoneIndexChanged: events.NewEvent(milestone.IndexCaller), PruningMilestoneIndexChanged: events.NewEvent(milestone.IndexCaller), NewConfirmedMilestoneMetric: events.NewEvent(NewConfirmedMilestoneMetricCaller), MilestoneSolidificationFailed: events.NewEvent(milestone.IndexCaller), }
Functions ¶
func ConfirmedMilestoneCaller ¶ added in v0.5.0
func ConfirmedMilestoneCaller(handler interface{}, params ...interface{})
func IsNodeHealthy ¶ added in v0.4.0
func IsNodeHealthy() bool
IsNodeHealthy returns whether the node is synced, has active neighbors and its latest milestone is not too old.
func IsReceiveTxWorkerPoolBusy ¶ added in v0.4.0
func IsReceiveTxWorkerPoolBusy() bool
func NewConfirmedMilestoneMetricCaller ¶ added in v0.4.0
func NewConfirmedMilestoneMetricCaller(handler interface{}, params ...interface{})
func SetUpdateSyncedAtStartup ¶ added in v0.4.0
func SetUpdateSyncedAtStartup(updateSynced bool)
SetUpdateSyncedAtStartup sets the flag if the isNodeSynced status should be updated at startup
func TriggerSolidifier ¶ added in v0.4.0
func TriggerSolidifier()
TriggerSolidifier can be used to manually trigger the solidifier from other plugins.
func WaitForTangleProcessorStartup ¶ added in v0.5.4
func WaitForTangleProcessorStartup()
WaitForTangleProcessorStartup waits until all background workers of the tangle processor are started.
Types ¶
Click to show internal directories.
Click to hide internal directories.