224 Commits
Author SHA1 Message Date
Zach Kelling 2157b410c6 Improve genesis loading and snapshot management
- 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
2026-01-20 00:03:35 -08:00
Zach Kelling 160e25c144 fix build 2026-01-14 19:56:11 -08:00
Zach Kelling 907b6ccb12 refactor: update all imports from node/vms to vm/vms 2026-01-09 00:03:50 -08:00
Zach Kelling 1013ead275 Update constants package 2026-01-08 20:38:49 -08:00
Zach Kelling e53011719c fix: rename TLS key files to luxtls.key/crt
- Rename staking.key -> luxtls.key in embedded configs
- Rename staking.crt -> luxtls.crt in embedded configs
- Update imports to github.com/luxfi/constants
2026-01-08 19:35:37 -08:00
Zach Kelling 4e2a4e432e chore: remove local replace directives and update dependencies
- 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
2026-01-03 07:05:17 -08:00
Zach Kelling 37c9881d7a feat: improve blockchain deployment and network handling
- 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
2025-12-24 12:54:59 -08:00
Zach Kelling a6f652d094 deps: upgrade to warp v1.18.0
Upgrade warp to v1.18.0 which consolidates warp-specific types
from lp118 into the warp package directly.

RIP lp118 🪦
2025-12-23 10:32:48 -08:00
Zach Kelling ec09524375 refactor: migrate from zap to luxfi/log, remove local replace directives
- 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
2025-12-22 12:39:05 -08:00
Zach Kelling 63c660b2a7 fix: use reassignPortsIfUsed=true in test to avoid port conflicts 2025-12-22 05:58:34 -08:00
Zach Kelling 2f9accfb10 Refactor subnet→chain terminology and update genesis to v1.5.6
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)
2025-12-19 07:11:06 -08:00
Zach Kelling a3432cec0b Fix build, bump deps 2025-12-13 10:53:55 +00:00
Zach Kelling bde9ea239c fix: Update netrunner for latest luxfi package APIs
- 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
2025-11-28 22:20:44 +00:00
Zach Kelling be85c151b0 fix: update imports and API calls for compatibility
- 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
2025-09-19 05:37:42 +00:00
Zach Kelling a7fe664664 Update dependencies to use latest tagged versions 2025-08-16 07:43:26 +00:00
Zach Kelling 6a9125450a Update packages 2025-08-05 23:12:36 +00:00
Zach Kelling c114aaad5b chore: update dependencies to use tagged versions, remove local replace directives 2025-07-20 06:46:41 +00:00
Hanzo Dev 2c036521a7 Fix build 2025-07-18 12:31:39 -05:00
Hanzo Dev 8e19dd357c Update imports 2025-07-17 16:56:43 -05:00
Zach Kelling ef1adb0022 Rollback to 1.6.0 2024-01-02 20:55:14 +01:00
Felipe Madero 44146ea4f3 nit 2023-04-21 10:51:16 -03:00
fm 3d8b3021dd unit tests 2023-04-13 17:42:22 -03:00
Felipe Madero 900d61bb66 Merge branch 'main' into accept-local-network 2023-04-04 11:36:44 -03:00
Felipe Madero dfd28c5751 merge main 2023-04-03 13:33:21 -03:00
Felipe Madero 6c3821e38f fix unit test 2023-03-06 09:14:56 -03:00
Patrick O'Grady c7e23ec0a4 lint 2023-03-01 17:35:35 -08:00
Felipe Madero 5d3d4e6da1 lint 2023-02-10 18:17:42 -03:00
Felipe Madero 3a2901e0b7 fix unit tests 2023-02-10 17:45:45 -03:00
Felipe Madero 0b69f7b70e fix unit tests 2023-01-19 15:39:12 -03:00
Felipe Madero 02e1d5ce6a fix unit tests 2023-01-19 10:42:49 -03:00
Felipe Madero ff5a44af2d lint 2022-12-23 14:34:55 -03:00
Dan LaineandGitHub 6a41ace72f add linting (#378)
* add linting

* remove bad filepath.Join

* appease linter

* update linter version

* add lint script
2022-12-19 14:53:41 -05:00
Felipe Madero 40b0608ddf fix unit tests 2022-11-23 20:12:13 -03:00
Felipe Madero 779a272a07 fix unit tests 2022-11-11 19:02:01 -03:00
Felipe Madero 5e4c23f4b2 fix unit test 2022-10-27 17:01:17 -03:00
fm f2ed9e68cc latest changes in 1.9.1 2022-10-25 19:51:44 -03:00
fm 23532515fc fix unit test 2022-10-04 18:16:24 -03:00
Felipe Madero 828ed22059 fmt 2022-09-30 22:22:08 -03:00
Felipe Madero 5b8f5df2e2 nits 2022-09-30 22:15:55 -03:00
felipemaderoandGitHub 7087792630 Merge branch 'main' into dependabot/go_modules/github.com/ava-labs/avalanchego-1.8.6 2022-09-30 21:06:54 -03:00
Felipe Madero 97407e4590 fix unit tests 2022-09-26 13:38:51 -03:00
Felipe Madero 492b97e7ee fix unit test 2022-09-23 20:59:47 -03:00
Felipe Madero 6d68cc8cf7 fix unit tests 2022-08-04 06:59:28 -03:00
Felipe Madero ef94a3cfc2 fix unit tests 2022-08-04 05:27:32 -03:00
Felipe Madero dea8d7cd1a Merge branch 'main' into 189-addnode-to-local 2022-08-03 18:06:33 -03:00
Felipe Madero ab3954fa94 fix mutex bug 2022-08-02 14:43:17 -03:00
Fabio Barone 6f413e6d24 fixed flags sequence 2022-07-21 16:36:50 -05:00
Fabio Barone 6b262eaeed race in tests 2022-07-20 14:57:49 -05:00
Fabio Barone 2f5ed83da6 first iteration for draft PR with issues 2022-07-20 14:51:21 -05:00
bc62a89c34 [AV-1829]: Add node process failure management (#150)
* 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>
2022-07-12 17:42:42 -04:00