376 Commits
Author SHA1 Message Date
zeekay 5ee5eccbcc chore: sync working tree
Commits 3 outstanding change(s) that were sitting uncommitted.
No build artifacts and no secrets in the changeset (both checked).
2026-07-26 10:14:09 -07:00
Hanzo DevandGitHub 59fd676294 chore(netrunner): kill subnet — chain/network vocabulary (#48)
zapwire types renamed:
  WhitelistedSubnets → WhitelistedChains
  SubnetID          → NetworkID
  Subnets           → Networks

local/network.go: comment rephrase --whitelisted-subnets → --whitelisted-chains
zapwire/e2e_test.go: test data updated to match renamed fields.

Build clean. zapwire tests pass.
2026-05-29 21:11:41 -07:00
Hanzo AI 1ad2281065 drop ethAddr/luxAddr string tags — canonical is evmAddr/utxoAddr 2026-05-22 20:40:50 -07:00
Hanzo AI 31175c1220 netrunner: refresh go.mod + gitignore .bak files
go.mod dep refresh, network.go updates, *.bak in gitignore.
2026-05-20 16:23:29 -07:00
Hanzo AI b673b28c31 rename: github.com/luxfi/protocol → github.com/luxfi/proto (imports + go.mod replace) 2026-05-18 21:19:09 -07:00
Hanzo DevandGitHub 811118da30 env: drop LUX_ prefix from env vars (noise) (#41)
Renames LUX_-prefixed env vars to canonical, non-noisy forms across
genesis_config, blockchain, network, examples, tests, genkeys, server:

- LUX_MNEMONIC      -> MNEMONIC
- LUX_PRIVATE_KEY   -> PRIVATE_KEY
- LUX_KEYS_DIR      -> KEYS_DIR
- LUX_BINARY_PATH   -> BINARY_PATH
- LUX_NETWORK_TYPE  -> NETWORK_TYPE  (doc only)
- LUX_GPU_EVM       -> GPU_EVM       (doc only)
- LUX_GPU_WORKER_PID-> GPU_WORKER_PID

Also fixes an obvious infinite-recursion bug in
local/genesis_config.go::getMnemonic() that the previous LUX_MNEMONIC
fallback line had become — the helper now reads MNEMONIC then
LIGHT_MNEMONIC and returns. Without this fix, callers reaching the
fallback would have hung the process.

BREAKING: external callers (CI, dev scripts, operators) must update
env var names. Per CLAUDE.md no-backwards-compatibility rule, the old
forms are removed.
2026-05-15 16:26:33 -07:00
Hanzo AI 69860c26e7 ci: migrate to shared docker-build workflow (native multi-arch, semver) 2026-04-09 21:58:21 -07:00
Zach Kelling 2cb1aa1aa8 fix: apply gofmt formatting 2026-02-14 05:04:26 -08:00
Zach Kelling 82344302ec Remove TODO comments and dead code from orchestrator and local network 2026-02-14 04:56:18 -08:00
Zach Kelling 3d3ae6f2ac chore: update engine and orchestrator 2026-02-13 22:36:40 -08:00
Zach Kelling 9cd711f46b chore: update evm to v0.8.35 and node to v1.23.4 with empty block fix 2026-01-31 16:31:32 -08:00
Zach Kelling 0ea3b63752 fix: resolve all golangci-lint issues
- Fix gofmt formatting in 8 files
- Remove duplicate luxfi/config imports in local/ package
- Add error checking for os.Remove calls in local/snapshot.go
2026-01-28 10:30:11 -08:00
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 30605d3406 Add new flags, profile support, updated genesis 2026-01-06 11:52:14 -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 8252ac5a40 chore: migrate to stdlib maps, remove unused imports
- Replace golang.org/x/exp/maps with stdlib maps (Go 1.21+)
- Remove unused slices imports from network/config.go and local/genesis_config.go
2025-12-29 20:30:26 -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 03de0bc797 fix: add Windows support for filesystem sync operations 2025-12-22 07:56:54 -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 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 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 afefff5fcc feat: Load wallet keys from ~/.lux/keys at runtime
- Remove hardcoded genesis.EWOQKey dependency
- Add getDefaultKey() function to load keys from ~/.lux/keys
- Add keys.go module for key management (LoadOrGenerateKeys, GenerateVestingSchedule)
- Update genesis dependency to v1.2.7 (no embedded keys)
- Keys are never embedded in source code

Breaking: Applications must have keys in ~/.lux/keys or they will be auto-generated
2025-12-09 21:03:44 +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 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 53f8af3521 Fix more tests 2025-08-11 06:14:05 +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 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 b0a2c9fdb2 add elastic subnet id info to snapshot 2023-05-30 15:43:07 -03:00
fm 0279adac5d add field for elastic subnet id map to local network 2023-05-29 18:53:09 -03:00
Felipe Madero 5350347831 also add sync after pausing node, cause a resume can be made too fast 2023-04-21 12:32:28 -03:00
Felipe Madero 8540028173 merge logs into one dir 2023-04-21 12:00:09 -03:00
Felipe Madero 44146ea4f3 nit 2023-04-21 10:51:16 -03:00
Felipe Madero 0514fc8997 add sync between node restart and after saving snapshot 2023-04-21 10:02:54 -03:00
fm 2e461d7b7f change go.mod 2023-04-13 17:18:36 -03:00
fm b39072f58d set all nodes as default if no participants are given 2023-04-06 17:11:07 -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
felipemaderoandGitHub 14ad5d8249 Merge branch 'main' into accept-local-network 2023-03-10 13:40:27 -03:00