mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
- Remove unused packages: engine/dag/{getter,bootstrap,vertex/vertexmock},
engine/pq/{bootstrap,block}, core/{tracker,verify}
- Add sync.RWMutex to protocol/wave for thread-safe map access
- Increase engine/dag test coverage from 11.7% to 98.3%
- Add comprehensive tests for DAG consensus, vertex, and engine
- All 27 packages pass tests, 16 at 100% coverage
38 lines
1.2 KiB
Go
38 lines
1.2 KiB
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
// Package core re-exports core types from github.com/luxfi/consensus/core
|
|
// for backwards compatibility. New code should import core directly.
|
|
package engine
|
|
|
|
import "github.com/luxfi/consensus/core"
|
|
|
|
// Re-export types from core package
|
|
type (
|
|
Fx = core.Fx
|
|
Message = core.Message
|
|
MessageType = core.MessageType
|
|
)
|
|
|
|
// Re-export message type constants
|
|
const (
|
|
PendingTxs = core.PendingTxs
|
|
PutBlock = core.PutBlock
|
|
GetBlock = core.GetBlock
|
|
GetAccepted = core.GetAccepted
|
|
Accepted = core.Accepted
|
|
GetAncestors = core.GetAncestors
|
|
MultiPut = core.MultiPut
|
|
GetFailed = core.GetFailed
|
|
QueryFailed = core.QueryFailed
|
|
Chits = core.Chits
|
|
ChitsV2 = core.ChitsV2
|
|
GetAcceptedFrontier = core.GetAcceptedFrontier
|
|
AcceptedFrontier = core.AcceptedFrontier
|
|
GetAcceptedFrontierFailed = core.GetAcceptedFrontierFailed
|
|
WarpRequest = core.WarpRequest
|
|
WarpResponse = core.WarpResponse
|
|
WarpGossip = core.WarpGossip
|
|
StateSyncDone = core.StateSyncDone
|
|
)
|