2486 Commits
Author SHA1 Message Date
Hanzo AI 8f5c5a88cc ci: add universe dispatch on semver tag push 2026-04-09 22:30:35 -07:00
Hanzo AI 69860c26e7 ci: migrate to shared docker-build workflow (native multi-arch, semver) 2026-04-09 21:58:21 -07:00
Hanzo AI af90017cd2 fix: chaos tests compile — resolve geth/crypto import + type mismatches
- Replace github.com/luxfi/geth/crypto (nonexistent) with
  github.com/luxfi/crypto for HexToECDSA, GenerateKey, S256, Sign, FromECDSA
- Use common.PubkeyToAddress and common.Keccak256 (geth/common wrappers)
  to avoid Address type mismatch between crypto/common and geth/common
- Fix log.NewWrappedCore (nonexistent) to log.New in consensus/dex tests
- Fix big.NewInt(1e19) overflow — 1e19 exceeds int64 max
- Fix toCallMsg returning interface{} instead of ethereum.CallMsg
- Add missing ethereum import in dex_chaos_test.go

Verified: go vet -tags chaos ./tests/ && go vet -tags gpu_chaos ./tests/
2026-04-07 09:03:09 -07:00
Hanzo AI af13dfac52 test: GPU EVM Block-STM chaos tests (8 parallel execution scenarios)
Fix compilation of gpu_evm_chaos_test.go by using proper ethereum.CallMsg
type from luxfi/geth root package for eth_call operations. All 8 tests
compile and list correctly with -tags gpu_chaos.

Tests: WriteConflict, ReadWriteSerializability, ECRecoverBatch,
Keccak256Batch, CrashMidBlock, MemoryPressure, StateRootConsistency,
PrecompileBatchVerify.
2026-04-07 01:26:03 -07:00
Hanzo AI a9aeb74c67 test: Jepsen-style chaos tests — bridge, DEX, Quasar consensus, GPU EVM
32 fault injection scenarios:

Bridge (8): nonce linearizability, MPC partition, batch atomicity,
  auto-pause under partition, clock skew rotation, double-spend nonce,
  exit guarantee during chaos, backing ratio hysteresis

DEX (8): swap atomicity, k=xy invariant under partition, TWAP resistance,
  concurrent swaps, StableSwap convergence, batch LP mint during reorg,
  fee split consistency, cross-pool arbitrage convergence

Quasar Consensus (8): partition recovery, byzantine fault detection,
  finality under load, validator rotation, clock skew, network jitter,
  double vote slashing, chain reorg recovery

GPU EVM Block-STM (8): write conflict resolution, read-write serializability,
  ecrecover batch correctness, keccak256 batch consistency, crash fallback
  to CPU, memory pressure degradation, state root determinism, precompile
  batch verify (FROST + CGGMP21 + BLS)
2026-04-07 01:24:52 -07:00
Hanzo AI 6cde3ea75c test: Jepsen-style chaos tests for Teleport bridge (8 fault injection scenarios)
Adds bridge_chaos_test.go with comprehensive fault injection tests for
the Teleporter bridge contract's safety invariants:

1. NonceLinearizability - concurrent nonce submission, exactly-once
2. PartitionedMPCSigner - oracle revocation/rejoin during partition
3. CrashDuringBatchMint - kill node mid-batch, verify no corruption
4. AutoPauseUnderPartition - insufficient backing triggers sticky pause
5. SignerRotationClockSkew - timestamp monotonicity enforcement
6. DoubleSpendNonce - concurrent same-nonce, exactly one succeeds
7. ExitGuaranteeDuringChaos - withdraw counter continuity across state
8. BackingRatioHysteresis - oscillating backing, sticky auto-pause

Tests deploy a TestTeleporter (mirrors production Teleporter.sol safety
invariants) to anvil and inject faults via process kill, concurrent
goroutines, and state manipulation. Gated behind -tags chaos.
2026-04-07 01:23:34 -07:00
Hanzo AI eb55f7d5c8 chore: symlink AGENTS.md + CLAUDE.md → LLM.md 2026-04-06 15:12:56 -07:00
Hanzo AI 6b066f9dd4 dep: bump github.com/luxfi/genesis v1.7.1 2026-04-04 11:34:33 -07:00
Hanzo AI 78a1faa5c7 dep: bump utxo v0.2.4→v0.2.5 (BCLookup in ParseAddress) 2026-04-01 17:14:21 -07:00
Hanzo AI 36f2919975 fix: LUX_MNEMONIC → MNEMONIC (generic env var) 2026-04-01 15:18:26 -07:00
Hanzo AI dab6ea2adf docs: replace subnet terminology with chain/L2 2026-03-29 12:15:56 -07:00
Hanzo AI d3c6978881 docs: replace subnet terminology with L2/chain
Update prose descriptions in README and LLM.md to use "chain" or "L2"
instead of "subnet". Preserves API endpoint paths, JSON field names,
CLI subcommand names, genesis config keys, Go struct fields, and
deprecatedFlagsSupport.json backward compatibility mappings.
2026-03-29 10:56:02 -07:00
Hanzo Dev ee3af1fc9d fix: resolve CI failures in build-test and docker-publish workflows
- Bump luxfi/config v1.1.1 -> v1.1.2 for BootstrapNodesKey symbol
- Fix Dockerfile GO_VERSION=1.26 -> 1.26.1 (go1.26 tarball does not exist)
- Update build-test.yml go-version 1.25.5 -> 1.26.1 to match go.mod
2026-03-25 01:07:30 -07:00
Hanzo Dev e1284bc808 chore: bump Go 1.26.0 → 1.26.1
Fixes 5 stdlib CVEs (html/template, os, net/url, crypto/x509 x2).
2026-03-12 01:09:28 -07:00
Hanzo Dev af6b1ce37a fix: update Dockerfile and Go dependencies 2026-03-03 19:45:33 -08:00
Zach Kelling f76292cc73 deps: bump node to v1.23.21 for production compatibility
Aligns netrunner with the deployed K8s node version which includes
the PendingTxs consensus fix and local consensus replace.
2026-02-22 14:07:04 -08:00
Zach Kelling 6a2f96e9dd fix: update API client and engine 2026-02-21 13:59:19 -08:00
Zach Kelling 2cb1aa1aa8 fix: apply gofmt formatting 2026-02-14 05:04:26 -08:00
Zach Kelling a6ce2e1d7c deps: bump config to v1.1.2 for BootstrapNodesKey 2026-02-14 04:58:59 -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 b323e845cb fix: update BIP-44 path comments to m/44'/60' (standard Ethereum)
Aligns derivation path documentation with the sdk/genesis coin type
change from 9000 to 60.
2026-02-13 13:04:51 -08:00
Zach Kelling bc2258f366 deps: update database to v1.17.42 with zapdb 2026-02-08 16:28:41 -08:00
Zach Kelling 3217f5ae0a ci: skip e2e tests until API compatibility is fixed
The e2e test file references APIs that have been removed or changed:
- ParticipantsSpec type removed from rpcpb
- utils.VerifyNetworkHasCorrectParticipants removed
- log.Info.String() method signature changed
- log.NewFactory() signature changed

This disables the e2e test job while keeping the infrastructure
intact for when the tests are updated.
2026-02-05 17:34:40 -08:00
Zach Kelling 1f953d8b49 fix: add e2e build tag for ginkgo test build
The e2e test files use //go:build e2e constraint, so ginkgo build
needs --tags e2e to include them.
2026-02-05 17:30:53 -08:00
Zach Kelling f7468e3f5d fix: handle node tarball extraction structure
The node release tarball extracts to build/luxd, not node-v${VERSION}/node.
Move extracted files and create node -> luxd symlink for compatibility.
2026-02-05 17:28:10 -08:00
Zach Kelling 723936a3d8 fix: update e2e test download URLs and versions
- Fix node download URL: luxfi/sdk/node -> luxfi/node
- Fix evm download URL: luxfi/subnet-evm -> luxfi/evm
- Update node versions: 1.10.0/1.9.16 -> 1.22.80/1.22.79
- Update evm version: 0.5.0 -> 0.8.35
- Handle evm binary format (raw binary, not tarball)
2026-02-05 17:25:07 -08:00
Zach Kelling 72b272f4b7 fix: handle error return from PVC Delete call 2026-02-05 15:41:36 -08:00
Zach Kelling aeb719c0e7 chore: sync dependencies and format code 2026-02-04 15:47:04 -08:00
Zach Kelling 05c2183240 Add devnet support to genesis loading
- Add DevnetID case to LoadGenesisForNetwork()
- Add DevnetID case to LoadCanonicalGenesis()
2026-02-02 21:50:14 -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 da792ce42c fix: add CGO_ENABLED=0 to lint step in CI workflow 2026-01-28 10:21:23 -08:00
Zach Kelling 301fa41eb5 fix: update CI for golangci-lint v2 and CGO-free builds
- Update golangci-lint from v1.49 to v2.1.6 in lint.sh
- Add GOWORK=off to workflow env for workspace isolation
- Add CGO_ENABLED=0 to unit tests (avoids luxfi/accel C headers)
- Update GitHub Actions: checkout v4, setup-go v5, upload-artifact v4
- Update OS matrix: ubuntu-22.04, macos-14
- Run go mod tidy for updated checksums
2026-01-28 10:01:14 -08:00
zandGitHub 47f38d43c2 Merge pull request #21 from luxfi/dependabot/go_modules/github.com/btcsuite/btcd-0.25.0
build(deps): bump github.com/btcsuite/btcd from 0.24.2 to 0.25.0
2026-01-28 09:31:41 -08:00
zandGitHub 2fa3cf5262 Merge pull request #24 from luxfi/dependabot/go_modules/github.com/onsi/ginkgo/v2-2.27.5
build(deps): bump github.com/onsi/ginkgo/v2 from 2.27.3 to 2.27.5
2026-01-28 09:31:36 -08:00
zandGitHub 15d4ca6b23 Merge pull request #25 from luxfi/dependabot/go_modules/github.com/grpc-ecosystem/grpc-gateway/v2-2.27.5
build(deps): bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.27.4 to 2.27.5
2026-01-28 09:31:33 -08:00
zandGitHub 96236562f9 Merge pull request #26 from luxfi/dependabot/go_modules/github.com/luxfi/geth-1.16.75
build(deps): bump github.com/luxfi/geth from 1.16.73 to 1.16.75
2026-01-28 09:31:28 -08:00
dependabot[bot]andGitHub 34fae1921d build(deps): bump github.com/luxfi/geth from 1.16.73 to 1.16.75
Bumps [github.com/luxfi/geth](https://github.com/luxfi/geth) from 1.16.73 to 1.16.75.
- [Release notes](https://github.com/luxfi/geth/releases)
- [Commits](https://github.com/luxfi/geth/compare/v1.16.73...v1.16.75)

---
updated-dependencies:
- dependency-name: github.com/luxfi/geth
  dependency-version: 1.16.75
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-27 11:32:52 +00:00
dependabot[bot]andGitHub 28b1aa85b4 build(deps): bump github.com/grpc-ecosystem/grpc-gateway/v2
Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.27.4 to 2.27.5.
- [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases)
- [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.27.4...v2.27.5)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  dependency-version: 2.27.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-27 11:32:16 +00:00
dependabot[bot]andGitHub 2dea72e340 build(deps): bump github.com/onsi/ginkgo/v2 from 2.27.3 to 2.27.5
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.27.3 to 2.27.5.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v2.27.3...v2.27.5)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
  dependency-version: 2.27.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-27 11:32:09 +00:00
Zach Kelling c519512db7 Disable CGO for cross-compilation releases
CGO_ENABLED=0 uses pure Go fallbacks for lux/accel.
For native builds with CGO acceleration, build locally with CGO_ENABLED=1.
2026-01-26 17:25:57 -08:00
Zach Kelling 654e1fad30 Update dependencies (vm v1.0.30, node v1.23.3) 2026-01-26 12:31:54 -08:00
Zach Kelling 75cb620ba4 fix: use node/utils/compression instead of compress
Update import from github.com/luxfi/compress to
github.com/luxfi/node/utils/compression for type compatibility.
2026-01-26 09:47:36 -08:00
dependabot[bot]andGitHub 16dc4dce0a build(deps): bump github.com/btcsuite/btcd from 0.24.2 to 0.25.0
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd) from 0.24.2 to 0.25.0.
- [Release notes](https://github.com/btcsuite/btcd/releases)
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES)
- [Commits](https://github.com/btcsuite/btcd/compare/v0.24.2...v0.25.0)

---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-26 17:40:37 +00:00
Zach Kelling 080dc879c2 chore: update dependencies for GOWORK=off builds
Updated packages:
- node v1.23.1 → v1.23.2
- protocol v0.0.2 → v0.0.3
- consensus v1.22.62 → v1.22.63
- codec v1.1.3 → v1.1.4
- timer v1.0.1 → v1.0.2
- net v0.0.1 → v0.0.2
- constants v1.4.3 → v1.4.4
- genesis v1.6.0 → v1.6.1
- runtime v1.0.0 → v1.0.1
- utxo v0.2.3 → v0.2.4
2026-01-26 09:37:54 -08:00
Zach Kelling fab2d8d999 chore: update go.mod dependencies 2026-01-21 20:10:10 -08:00
Zach Kelling 082a731a9a chore: update all deps to latest (node v1.22.88, vm v1.0.20, database v1.17.39) 2026-01-20 00:17:19 -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