Tags: luxfi/consensus
Tags
refactor(context): simplify Context struct - Remove PrimaryNetworkID field (NetworkID == 1 means primary network) - Remove LUXAssetID (use XAssetID for X-chain native asset) - Replace GetPrimaryNetworkID with IsPrimaryNetwork - NetworkID: 1=mainnet, 2=testnet
refactor: rename NetID to PrimaryNetworkID, simplify NetworkID - NetworkID is now uint32 (1=mainnet, 2=testnet, EVM: 96369/96368) - PrimaryNetworkID is ids.ID for primary network detection - Remove QuantumID, SubnetID aliases for clarity - Update all helper functions and tests
feat(quasar): add epoch, quantum block, and grouped threshold support - Add epoch.go for epoch-based consensus timing - Add quantum_block.go for quantum-resistant block structures - Add grouped_threshold.go for grouped threshold voting - Add quasar.go as main protocol entry point - Add dual_threshold_test.go for dual threshold testing - Update core.go with improved consensus logic - Remove deprecated hybrid.go - Fix engine.Start bool parameter in tests
feat(engine): add Engine interface compatibility methods - Add StopWithError method for graceful shutdown with errors - Add Context method to expose engine context - Change Start signature from (ctx, uint32) to (ctx, bool) - Add StartWithID for backward compatibility with uint32 request ID
PreviousNext