Commit Graph
87 Commits
Author SHA1 Message Date
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 e74963cca4 refactor: clean up CLI and fix e2e tests
- Remove duplicate cmd files (start.go, multinet.go, engine.go)
  that bypassed server/control architecture and contained AI slop
- Fix e2e_test.go variable shadowing (log -> logger)
- Fix metric.NewRegistry() package reference
- Remove unused prometheus import
- CLI now cleanly provides: server, control, ping commands
- Update dependencies to github.com/luxfi/const v1.4.0
2025-12-29 15:10:32 -08:00
Zach Kelling cd0dd2fccc fix: correct network ID usage and remove HID conflicts
- Remove ledger-lux-go transitive dependency
- Fix Network ID vs Chain ID confusion in genesis_config.go
- Use constants.MainnetID/TestnetID instead of configs.ChainID
- Fix port base calculation for multi-network mode
- Add snapshot server functionality
- Update protobuf definitions with new RPC methods
- Add mnemonic test coverage
2025-12-29 10:07:43 -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 35f02edd25 Update logging, examples 2025-12-22 05:07:52 -08:00
Zach Kelling 8d816a38ad refactor: remove all SubnetEVM references
- Rename --subnet-evm-path flag to --evm-path
- Rename subnetEvmPath variable to evmPath
- Rename subnet-evm-genesis.json to evm-genesis.json
- Change VmName from "subnetevm" to "evm"
- Update all test configurations
2025-12-21 11:12:41 -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
Hanzo Dev c50eca8711 feat: update consensus import paths for v1.21.1
- Fixed validators → validator import path
- Added local replace directives for development
2025-11-10 08:20:37 -08: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 2d0cc8a541 chore: Clean up build files and fix interfaces 2025-08-18 19:57:51 +00:00
Zach Kelling a7fe664664 Update dependencies to use latest tagged versions 2025-08-16 07:43:26 +00:00
Zach Kelling 6175b6c96f fix: Update logger method for compatibility 2025-08-06 06:55:30 +00:00
Zach Kelling 0615791489 Update address types and dependencies 2025-08-06 04:56:44 +00:00
Zach Kelling 6a9125450a Update packages 2025-08-05 23:12:36 +00:00
Zach Kelling 3490b8b313 Update imports to use luxfi/crypto instead of node/utils/crypto 2025-08-01 18:32:54 +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
fm 8a583754e4 nit 2023-04-13 17:23:31 -03:00
Felipe Madero b848b45ab6 update paused node info in server 2023-02-10 17:28:45 -03:00
Felipe Madero 708d4e031e add function to pause/resume node 2023-02-10 11:59:49 -03:00
felipemaderoandGitHub 532464c1d1 Merge branch 'main' into remove-buildir-flag-reloaded 2023-01-06 14:45:01 -03:00
Felipe Madero 1c642dc865 lint 2023-01-06 02:51:32 -03:00
Felipe Madero 7fd72a4b38 nit 2023-01-06 02:47:57 -03:00
Stephen Buttolph b53323bf45 Revert "Revert "Remove buildir flag reloaded"" 2023-01-05 17:32:34 -05: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 61d5e8ae62 fix unit tests 2022-12-07 19:53:10 -03:00
Felipe Madero fbaf45cc39 bump to avago 1.9.4 2022-12-07 19:20:00 -03:00
Stephen 63eb4cda77 Add test message implementation + update avalanchego version 2022-11-04 18:19:38 -04:00
fm f2ed9e68cc latest changes in 1.9.1 2022-10-25 19:51:44 -03:00
Felipe Madero 8cfb9dc9ec fix attach peer panic 2022-10-20 03:08:45 -03:00
Felipe Madero f7ca66bf17 fixes to automated PR 2022-09-26 13:28:36 -03:00
Fabio Barone ceb8f6d32a bump avago to 1.8.1 2022-09-05 10:46:30 -05:00
Connor DalyandGitHub 0043f9e928 Revert "Remove buildir flag reloaded" 2022-08-04 15:54:46 -04:00
Felipe Madero 1b13dcc359 replace build-dir with plugin-dir 2022-08-04 08:43:43 -03:00
Felipe Madero dea8d7cd1a Merge branch 'main' into 189-addnode-to-local 2022-08-03 18:06:33 -03:00
Fabio Barone 8450e2c5f6 2nd round of comments 2022-08-01 16:52:46 -05:00
Felipe Madero a93a32ec90 fix e2e 2022-08-01 16:00:08 -03:00
Fabio Barone 26e908d4c9 move AttachPeer entirely to the node 2022-07-19 12:24:50 -05:00
Felipe Madero c79d6b777b GetURL() to return 0.0.0.0 if http-host is set so 2022-07-13 15:20:44 -03:00
Felipe Madero 6025360fb6 basic version bump 2022-07-13 08:59:46 -03: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
Felipe Madero d234b63ded use build dir from node to get plugin dir 2022-06-16 00:57:20 -03:00
Felipe Madero 05a4e28a0e add build dir query for node 2022-06-16 00:52:00 -03:00
fm 1abe4731a8 use node config from local.network to restart nodes for custom vms 2022-06-11 16:21:53 -03:00
Felipe Madero 7459c2d176 use blocking msg queue at peer 2022-05-27 20:57:19 -03:00