mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
scrub Avalanche/Snowman naming residue: docstring + label rename (no wire changes)
This commit is contained in:
@@ -13,7 +13,7 @@ engines:
|
||||
staking_port: 9651
|
||||
extra:
|
||||
chain_id: 96369
|
||||
consensus: snowman
|
||||
consensus: linear
|
||||
wait_healthy: true
|
||||
|
||||
# Lux for compatibility testing
|
||||
|
||||
@@ -891,7 +891,7 @@ func validatorKeysDir() string {
|
||||
//
|
||||
// IMPORTANT: Keys are derived from mnemonic ONCE and persisted to disk (~/.lux/netrunner-validators/).
|
||||
// On subsequent runs, keys are loaded from disk to maintain stable NodeIDs.
|
||||
// This follows Avalanche's pattern where identity = persistent staking keys.
|
||||
// This follows the Lux pattern where identity = persistent staking keys.
|
||||
//
|
||||
// The mnemonic is used to derive:
|
||||
// - EC keys (for P-chain allocations) - deterministic from mnemonic
|
||||
|
||||
+3
-3
@@ -100,7 +100,7 @@ const (
|
||||
// ConsensusManager handles consensus for a network
|
||||
type ConsensusManager struct {
|
||||
NetworkID uint32
|
||||
Type string // "snowman" or "avalanche"
|
||||
Type string // "linear" (single-chain Lux ProtocolVM) or "dag" (Quasar DAG)
|
||||
Params ConsensusParams
|
||||
mu sync.RWMutex
|
||||
}
|
||||
@@ -205,7 +205,7 @@ func (m *MultiNetworkManager) AddNetwork(config NetworkConfig) error {
|
||||
// Create consensus manager for this network
|
||||
m.consensusManagers[config.NetworkID] = &ConsensusManager{
|
||||
NetworkID: config.NetworkID,
|
||||
Type: "snowman", // Default to Snowman consensus
|
||||
Type: "linear", // Default to Lux ProtocolVM linear chain
|
||||
Params: DefaultConsensusParams(),
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ func (m *MultiNetworkManager) runConsensus(networkID uint32) {
|
||||
return
|
||||
case <-ticker.C:
|
||||
// Simulate consensus round
|
||||
// In production, this would run actual Snowman/Avalanche consensus
|
||||
// In production, this would run actual Lux Quasar consensus
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user