- Enhance genesis.go with LoadCanonicalGenesis for mainnet/testnet
- Add LoadGenesisForNetwork to load from external paths
- Improve snapshot.go with better incremental backup support
- Fix network ID handling in genesis_config.go (use constants.MainnetID not ChainID)
- Update API client interfaces for better type safety
- Fix server network handling for proper genesis selection
- Update dependencies to latest versions
- Update github.com/luxfi/keys v1.0.5 → v1.0.6
- Update github.com/luxfi/genesis v1.5.18 → v1.5.19
- Remove local replace directives for keys and genesis
- Use published package versions for reproducible builds
- Fix chain validator addition for testnet/mainnet networks
- Add better error handling for CreateChains
- Improve network state tracking for multi-network support
- Fix server shutdown to properly clean up network resources
- Replace all direct go.uber.org/zap imports with github.com/luxfi/log
- Rename log variables to logger throughout codebase to avoid shadowing
the log package when using package-level functions like log.String, log.Err
- Remove local replace directives from go.mod (genesis, config)
- Bump version to 1.6.1
Major changes:
- Rename SubnetSpec → ChainSpec/ParticipantSpec throughout codebase
- Rename BlockchainSpec → ChainSpec for full chain definitions
- Update all protobuf definitions with new naming
- Fix duplicate variable declarations from sed replacements
- Update copyright headers to BSD-3-Clause with SPDX identifiers
- Update github.com/luxfi/genesis to v1.5.6 (BLS signer keys)
The genesis v1.5.6 update adds:
- Initial stakers with BLS publicKey and proofOfPossession
- Initial allocations for local network testing
- Fixes "failed to load database state: not found" error
Build fixes:
- Fix api/mocks/client.go CChainAPI return type
- Fix local/node_test.go with build tag for integration tests
- Fix parameter name collisions (chainConfigs → pChainConfigs)
- Fix genesis cChainGenesis parsing to handle both string and map formats
- Update tmpnet API usage for ReadNetwork, Start signatures
- Update import paths for renamed packages
- Fix type assertions and field access patterns
- Migrated from Subnet to Net terminology
- Fixed logging imports to use luxfi/log
- Updated metric and set package imports
- Added replace directives for local packages
- All binaries building successfully
* start adding some checks for node stop
* avoid closing the notification chan
* get to work health up to a good point
* notification of node failure events to user he decides
* use new channel in example
* fix unit tests
* add stopped node check on server healthy check
* keep dead status of process and let used find out on that
* add management of node failure on server
* fix unit tests
* fix e2e test
* Update local/node.go
Co-authored-by: Dan Laine <daniel.laine@avalabs.org>
* fix after applying suggested changes
* add more sync to local node process
* check this causes unit test error at CI
* add state to process manage struct
* add process exit code to notification msg
* fix stuff related to changing notification msg
* fix unit test
* add ctx to node Wait, network RemoveNode
* fix unit test
* kill all descendant of wait context failure
* address PR comment
* move context wait to Stop
* fix unit test issue
* use Await4 to avoid race conditions
* improve comments
* nit
* rm comments regarding Ctrl+C special case and improve code for that
* address PR comment
* move node process to its own file
* add missing file
* reduce number of channels
* address PR comments
* address PR comments
* change Alive method for Status method
* address PR comments
* avoid using of syscal
* address PR comments
* avoid syscall SIGNAL stuff
* address PR comments
* fix examples delay
* fix log format; go mod tidy
* Dan's pass; remove unexpectedStopChan (#158)
* move status to its own package; nits
* combine newNodeProcess and Start
* update nodeProcess
* remove unexpected stop chan
* nit
* fix test
* fix local network stop context cancellation
* fix node stop deadlock
* make Stop return exit code rather than error
* remove return value from killDescendants
* nits; bump timeout
* lint
* add wait time to Status to be notified on common avalanchego startup
failures
* fix lock in Status()
* fix lock code
* increase first status call wait time
* remove first call to status check
Co-authored-by: Dan Laine <daniel.laine@avalabs.org>