Commit Graph
223 Commits
Author SHA1 Message Date
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 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 fa4f6450a5 feat: add multi-network support for mainnet/testnet
- Add testnet example alongside mainnet example
- Update server/network.go to properly handle network IDs
- Fix genesis config loading for different network types
- Support concurrent mainnet (port 9630) and testnet (port 9640)
- Add multi-network architecture documentation
2025-12-23 17:15:00 -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 e529ccf262 fix: use format string for ux.Print to fix go vet error 2025-12-19 10:29:38 -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 55113bf301 fix: skip PrimaryNetworkID when querying subnet info
The updateSubnetInfo function was failing because GetNets returns the
Primary Network (which has ID ids.Empty). GetCurrentSupply succeeds for
the Primary Network (since it has supply) but it's not an elastic
subnet, so GetElasticSubnetID fails with "subnetID not found on map".

This fix filters out both PlatformChainID and PrimaryNetworkID when
collecting subnet IDs to query.

Also updates genesis dependency to v1.5.5.
2025-12-16 16:55:27 -08:00
Zach Kelling a3432cec0b Fix build, bump deps 2025-12-13 10:53:55 +00:00
Zach Kelling e9ad6d53b7 feat: Improve genesis config and graceful shutdown handling
- Add treasury and ewoq allocations to mainnet genesis
- Use proper treasury address for reward and stake allocations
- Add ewoq allocation with immediately available P-chain funds
- Improve graceful shutdown exit code handling (accept 0, -1, 2, 130, 143)
- Update dependencies: node v1.21.5, genesis v1.2.5, evm v0.8.1
- Remove local replace directive for genesis
2025-12-09 07:15:36 +00:00
Zach Kelling 094c0290fe Update node to v1.21.3 with migrate package support 2025-12-04 23:51:15 +00:00
Zach Kelling 064b32d03a fix: Update default flags and add mainnet/testnet genesis support
- Fix invalid flag names in default/flags.json:
  - network-peer-list-gossip-frequency → network-peer-list-pull-gossip-frequency
  - Remove deprecated api-ipcs-enabled flag
- Add mainnet (96369) and testnet (96368) genesis configurations
- Server now detects network-id and uses appropriate genesis
2025-11-29 00:12:57 +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 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
Hanzo Dev 2c036521a7 Fix build 2025-07-18 12:31:39 -05:00
Hanzo Dev 1dacb0d461 Updte for latest geth 2025-07-17 16:29:44 -05:00
Hanzo Dev 478d51ffee Update copyright headers to Lux Industries Inc 2025 2025-07-03 23:09:31 -04: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
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
fm be2c6afebd fix criteria to decide if subnet is elastic 2023-05-30 16:37:42 -03:00
sukantoraymond 6f8a10d582 update pr comments 2023-05-30 15:26:50 -04:00
fm 4fe77b4822 fill server elastic subnet id from local info 2023-05-29 20:03:38 -03:00
sukantoraymond c0d51f9729 implement remove subnet validator 2023-05-25 17:19:49 -04:00
sukantoraymond df01b4fff4 add asset id to transform output 2023-05-23 17:46:49 -04:00
sukantoraymond f8ebf9803b fix isElastic output when updateCluster 2023-05-22 18:49:25 -04:00
sukantoraymond 149216b09c add permissionless validators 2023-05-22 17:56:39 -04:00
fm b6ff0900ff add is elastic check 2023-05-03 16:49:57 -03:00
Felipe Madero 40e44c06be Merge branch 'main' into elastic-nofiles 2023-05-03 10:14:09 -03:00
sukantoraymond edbdf228fa address PR comments 2023-05-02 16:49:13 -04:00
sukantoraymond f23a9aaa69 address PR comments 2023-05-02 16:45:21 -04:00
fm 8636948b4b Merge branch 'main' into change-subnet-clusterinfo 2023-05-02 15:48:21 -03:00
sukantoraymondandGitHub b60d442601 Merge branch 'main' into elasticsubnets 2023-05-01 13:10:52 -04:00
Felipe Madero 11c6dfb324 take into account paused nodes 2023-04-25 13:37:31 -03:00
Felipe Madero c4abc925ad fix machine conf 2023-04-25 11:25:47 -03:00
Felipe Madero a0375937f9 generate prometheus config 2023-04-25 10:46:16 -03:00
Felipe Madero e2e42f8380 fix bug of choosing paused node for a pchain client 2023-04-22 18:40:27 -03:00
Felipe Madero 8540028173 merge logs into one dir 2023-04-21 12:00:09 -03:00
Felipe Madero ed0ce70c11 wait for healthy when starting without blockchains 2023-04-21 10:57:07 -03:00
sukantoraymond c2557537a7 fix lint 2023-04-13 23:39:12 -04:00
sukantoraymond cf3121081e fix lint 2023-04-13 23:23:04 -04:00
sukantoraymond f62f190176 remove participants 2023-04-13 23:12:14 -04:00
sukantoraymond 94646db121 update subnet info cluster 2023-04-13 22:57:48 -04:00