Commit Graph
100 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 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 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 6a9125450a Update packages 2025-08-05 23:12:36 +00:00
Hanzo Dev 1dacb0d461 Updte for latest geth 2025-07-17 16:29:44 -05:00
Zach Kelling ef1adb0022 Rollback to 1.6.0 2024-01-02 20:55:14 +01:00
sukantoraymond d95161070f refactor restartNodes 2023-06-01 17:25:25 -04:00
sukantoraymondandGitHub 83da8f512f Merge branch 'addPermissionlessValidators' into removeValidatorsNew
Signed-off-by: sukantoraymond <rsukanto@umich.edu>
2023-06-01 16:40:58 -04:00
sukantoraymond f792526dbc fix merge 2023-06-01 12:13:24 -04:00
sukantoraymondandGitHub c4b89206fe Merge branch 'main' into addPermissionlessValidators
Signed-off-by: sukantoraymond <rsukanto@umich.edu>
2023-06-01 10:55:24 -04:00
sukantoraymond 87e987f158 address PR comments 2023-05-30 17:49:03 -04:00
sukantoraymondandGitHub d18fc0c992 Merge branch 'addPermissionlessValidators' into removeValidatorsNew
Signed-off-by: sukantoraymond <rsukanto@umich.edu>
2023-05-30 17:37:02 -04:00
sukantoraymond 6f8a10d582 update pr comments 2023-05-30 15:26:50 -04:00
fm 1065d90733 add method to get elastic subnet id info 2023-05-29 19:47:10 -03:00
sukantoraymond c0d51f9729 implement remove subnet validator 2023-05-25 17:19:49 -04:00
sukantoraymond fdfee03b69 use node name as argument 2023-05-24 17:42:45 -04:00
sukantoraymond df01b4fff4 add asset id to transform output 2023-05-23 17:46:49 -04:00
sukantoraymond 149216b09c add permissionless validators 2023-05-22 17:56:39 -04:00
sukantoraymond 5bb06edf06 add e2e test 2023-04-13 18:03:53 -04:00
sukantoraymond d3539705db elastic subnets 2023-04-13 10:30:43 -04:00
fm 87c689bc12 set blockchain creation funcs to return ids 2023-04-11 18:28:50 -03:00
fm f2076a41cf add subnet ids response to CreateSubnets 2023-04-11 18:11:26 -03:00
fm a0e4b32c70 improve efficiency at CreateSubnets 2023-04-07 14:13:35 -03:00
fm 97604f71d4 partially add subnet specs to local 2023-04-05 15:53:47 -03:00
Felipe Madero 708d4e031e add function to pause/resume node 2023-02-10 11:59:49 -03:00
Felipe Madero 597a1ee2a6 pass track-subnets to avago and change internal namings 2023-01-19 07:26:22 -03:00
Felipe Madero 20d298b53d add plugin dir param to restart node, add node, and do some cleanup 2023-01-06 02:30:05 -03:00
Felipe Madero a83c624291 fix lint 2022-12-20 12:06:40 -03:00
Felipe Madero 48c968cb13 Merge branch 'main' into chain-config-per-node 2022-12-15 14:40:10 -03:00
Abdelkrim Boutkhil 878cbf9e14 add blockchain_alias - code review fixes 2022-12-15 10:39:47 +01:00
Felipe Madero 9eac721486 fmt 2022-12-12 15:49:14 -03:00
Felipe Madero 34a8bff412 add per node chain config to local blockchain spec 2022-12-12 12:57:57 -03:00
Abdelkrim Boutkhil a4d3f48eb9 add blockchain_alias blockchain-spec 2022-11-23 15:32:04 +01:00
Felipe Madero 2087a49706 all except blockchain 2022-11-11 18:18:52 -03:00
Felipe Madero 978de812b6 fix some logic 2022-11-11 15:34:10 -03:00
Felipe Madero 74a04d9be8 move repeated vm check and file reading into func 2022-10-22 12:26:22 -03:00
Darioush Jalali b61f11c769 merge fixes 2022-08-17 13:13:52 -07:00
Darioush JalaliandGitHub fa5e683934 changes for testing statesync on subnet-evm (#235)
* add chainID to NewEthClient

* add reset node w/ chain configs

* missing client code

* bump versions for compatibility
2022-08-16 07:13:57 -07:00
Felipe Madero 25e775ae4a do not accept dbdir on restart node 2022-08-02 19:02:01 -03:00
Felipe Madero 48a2a8b332 Merge branch 'main' into move-restart-to-local 2022-08-02 15:37:28 -03:00
Fabio Barone 3397cfbc08 added network.ErrNodeNotFound and removed obsolete ones 2022-08-01 17:07:23 -05:00
Fabio Barone 98a05d4b06 Merge remote-tracking branch 'origin/main' into 187-peer-to-local 2022-08-01 16:53:08 -05:00
Felipe Madero 91bf6b4bde Merge branch 'anr-server-to-local-cleanup' into move-restart-to-local 2022-07-28 16:38:20 -03:00
Felipe Madero b89b44252f use local RestarNode in server RestartNode 2022-07-21 18:20:39 -03:00
Felipe Madero cb9872686c finish migrating basic stuff of custom vms to local 2022-07-21 12:20:34 -03:00
Fabio Barone 26e908d4c9 move AttachPeer entirely to the node 2022-07-19 12:24:50 -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
fm d3244c6195 update readme 2022-05-26 12:47:57 -03:00
fm 531b9de7aa add path return to save snapshots 2022-05-26 11:41:47 -03:00
fm 1f035d82dc added New functions for creating networks from config, default
config, snapshot
2022-05-25 15:30:24 -03:00