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
|
staking_port: 9651
|
||||||
extra:
|
extra:
|
||||||
chain_id: 96369
|
chain_id: 96369
|
||||||
consensus: snowman
|
consensus: linear
|
||||||
wait_healthy: true
|
wait_healthy: true
|
||||||
|
|
||||||
# Lux for compatibility testing
|
# 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/).
|
// 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.
|
// 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:
|
// The mnemonic is used to derive:
|
||||||
// - EC keys (for P-chain allocations) - deterministic from mnemonic
|
// - EC keys (for P-chain allocations) - deterministic from mnemonic
|
||||||
|
|||||||
+3
-3
@@ -100,7 +100,7 @@ const (
|
|||||||
// ConsensusManager handles consensus for a network
|
// ConsensusManager handles consensus for a network
|
||||||
type ConsensusManager struct {
|
type ConsensusManager struct {
|
||||||
NetworkID uint32
|
NetworkID uint32
|
||||||
Type string // "snowman" or "avalanche"
|
Type string // "linear" (single-chain Lux ProtocolVM) or "dag" (Quasar DAG)
|
||||||
Params ConsensusParams
|
Params ConsensusParams
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
}
|
}
|
||||||
@@ -205,7 +205,7 @@ func (m *MultiNetworkManager) AddNetwork(config NetworkConfig) error {
|
|||||||
// Create consensus manager for this network
|
// Create consensus manager for this network
|
||||||
m.consensusManagers[config.NetworkID] = &ConsensusManager{
|
m.consensusManagers[config.NetworkID] = &ConsensusManager{
|
||||||
NetworkID: config.NetworkID,
|
NetworkID: config.NetworkID,
|
||||||
Type: "snowman", // Default to Snowman consensus
|
Type: "linear", // Default to Lux ProtocolVM linear chain
|
||||||
Params: DefaultConsensusParams(),
|
Params: DefaultConsensusParams(),
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,7 +324,7 @@ func (m *MultiNetworkManager) runConsensus(networkID uint32) {
|
|||||||
return
|
return
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
// Simulate consensus round
|
// 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