Commit Graph
10 Commits
Author SHA1 Message Date
zeekay 047c6ffba8 fix: break import cycle by removing vm dependency from core package
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.
2026-01-26 08:15:28 -08:00
zeekay a04bf96096 Fix State type exports, rename ChainState interface 2025-12-19 09:05:46 -08:00
zeekay c18437f410 Update consensus 2025-11-06 02:36:49 -08:00
zeekay 952479193f consensus: Fix ContextInitializable to use *Context instead of context.Context
- Change ContextInitializable.InitCtx to accept *consensusctx.Context
- Change Contextualizable.InitializeContext to accept *consensusctx.Context
- Update XAssetID, QuantumNetworkID, GetQuantumIDs to use *consensusctx.Context
- Matches upstream avalanchego pattern where Context is consensus-specific type
2025-10-29 14:08:50 -07:00
zeekay d3c95c6e4c Replace symlinks with actual directories for Go module compatibility 2025-09-27 03:26:38 +00:00
zeekay fee6b3564f Update and re-organize 2025-09-24 04:01:37 -05:00
zeekay 769f316d04 fix: resolve linting issues for CI
- Fixed assignOp issues: replaced x = x + y with x += y
- Fixed deprecated GetSubnetID to use GetNetID
- Added error check for verkle witness SetBytes
- Added nolint comment for simulation randomness (not security-critical)
- Formatted all Go code with gofmt
2025-08-25 22:10:31 -05:00
zeekay 66bfe2768e Add missing core packages for node compatibility
- Add interfaces package with State and Block interfaces
- Add tracker package for operation tracking
- Add appsender package with AppSender interface
- Required for node and CLI compilation
2025-08-25 00:20:46 +00:00
zeekay d3cd0bfe65 feat: major codebase reorganization for clean, orthogonal structure
๐Ÿ—๏ธ Core Reorganization:
- Replace core/interfaces with new core/ package containing pure interfaces
- Move protocol/* modules to top-level (nova, nebula, quasar)
- Move core submodules to top-level (focus, prism, wave, horizon, flare)
- Remove old core/ junk-drawer structure

โœจ New Structure:
- core/ โ†’ Pure interfaces, zero consensus dependencies
- focus/ โ†’ ฮฒ-confidence tracking
- prism/ โ†’ DAG cuts/refraction
- wave/ โ†’ Thresholding protocols
- nova/ โ†’ Chain finalizer protocol
- nebula/ โ†’ DAG protocol
- quasar/ โ†’ Post-quantum overlay
- horizon/ โ†’ DAG order theory

๐Ÿงน Cleanup:
- Remove duplicate Config declarations
- Fix package naming conflicts
- Add type constraints for generic elegance
- Make FPC default in config

๐Ÿ“ Architecture:
- Clean import hierarchy (no cycles)
- Pluggable consensus protocols via core.Protocol[T]
- Composable, orthogonal modules
- Production-ready organization
2025-08-22 11:27:09 -05:00
zeekay af0bbdc3d6 feat: complete integration of all three consensus engines
- Implement chain, DAG, and post-quantum consensus engines with full test coverage
- Create IntegratedEngine in node package combining all three engines
- Add production-ready cmd tools (params, checker, sim, zmq-bench)
- Implement Acceptor interface for node consensus integration
- Add WithBlockTime method to config Parameters
- Ensure all tests pass across consensus and node packages
- Remove stub implementations and add proper production code
- Fix config validation with detailed error messages
- Clean up duplicate files and unused code
2025-08-21 19:25:56 -05:00