mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
Define MessageType, Message, Fx, FxLifecycle locally in core package instead of aliasing from vm. This breaks the import cycle: consensus → vm → consensus that was preventing builds without workspace mode.
31 lines
813 B
Go
31 lines
813 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
// Package engine provides consensus engine implementations.
|
|
package engine
|
|
|
|
import "github.com/luxfi/consensus/core"
|
|
|
|
// Type aliases from core package for consensus internal use
|
|
type (
|
|
Message = core.Message
|
|
MessageType = core.MessageType
|
|
Fx = core.Fx
|
|
FxLifecycle = core.FxLifecycle
|
|
State = core.State
|
|
)
|
|
|
|
// Re-export constants from core package
|
|
const (
|
|
PendingTxs = core.PendingTxs
|
|
StateSyncDone = core.StateSyncDone
|
|
Unknown = core.Unknown
|
|
Starting = core.Starting
|
|
Syncing = core.Syncing
|
|
Bootstrapping = core.Bootstrapping
|
|
Ready = core.Ready
|
|
Degraded = core.Degraded
|
|
Stopping = core.Stopping
|
|
Stopped = core.Stopped
|
|
)
|