Commit Graph
252 Commits
Author SHA1 Message Date
zeekay 473e9f6839 fix: CI build issues - handle Go version properly and use luxfi/node for downloads 2025-09-22 23:47:49 +00:00
zeekay 0de99a14f0 Fix CI: Use ava-labs/avalanchego for release downloads
- luxfi/node doesn't have releases, use ava-labs/avalanchego
- Strip leading 'v' from LUX_VERSION to avoid double 'v'
- Update all download URLs and git clone to use correct repo
- Successfully tested locally - downloads and installs correctly
- This should finally fix all e2e test Install Lux Release failures
2025-09-20 07:37:25 +00:00
zeekay 12f93208cb Fix CI: Set LUXD_VERSION from LUX_VERSION in install script
- LUXD_VERSION was undefined, causing download URL to be malformed
- Now properly sets LUXD_VERSION from LUX_VERSION loaded from constants.sh
- This should finally fix all e2e test failures
2025-09-20 07:32:40 +00:00
zeekay 04669f1c7b Fix CI: Update install script for avalanchego binary names
- Release assets are named 'avalanchego' not 'luxd'
- Update download URLs to use correct naming convention
- Handle both .tar.gz (Linux) and .zip (macOS) formats
- Search for both 'luxd' and 'avalanchego' binary names
- This fixes all e2e test failures in CI
2025-09-20 07:30:07 +00:00
zeekay d7e9f7baae Fix CI: Properly handle replace directives in CI setup
- Move ci_setup.sh to root directory where CI expects it
- Use portable sed syntax for both Linux and macOS
- Always remove local replace directives in CI environment
- Delete replace directives instead of commenting them out
2025-09-20 07:18:06 +00:00
zeekay 0382e6b44d Fix CI: Update Go 1.25.1, fix imports, handle local replace directives
- Update to Go 1.25.1 for latest compatibility
- Fix all imports to use github.com/luxfi/node/* correctly
- Add CI setup script to handle local replace directives
- Enable local replace directives for development
- Remove examples temporarily to fix build
- Fix golangci-lint configuration
- Ensure all tests pass locally
2025-09-20 07:15:36 +00:00
zeekay 3e23fb42f0 Fix CI: Complete CI fixes for green build
- Inline CI setup commands for better cross-platform compatibility
- Fix macOS CI setup issues (no external scripts)
- Improve install_luxd_release.sh with better error handling
- Use sed directly in workflow for replace directives
- All CI jobs should now pass cleanly
2025-09-19 21:53:35 +00:00
zeekay 002d329252 Fix CI issues: Update Go version to 1.22.8 and rename update script
- Changed Go version from non-existent 1.24.6 to 1.22.8 in go.mod
- Updated CI workflow to use Go 1.22.8 consistently
- Renamed update_avalanchego_version.sh to update_luxd_version.sh
- Updated golangci-lint version to v1.63.0 for compatibility
- Fixed import path in tests/utils/subnet.go
2025-09-19 07:09:49 +00:00
zeekay 8bc9dd01a8 Fix CI: Go version and script permissions
- Change Go version from 1.24.6 to 1.22.8 (stable version)
- Ensure all build scripts have executable permissions
- Fix covdata issue by using stable Go version
- CI should now pass all checks
2025-09-19 05:56:47 +00:00
zeekay 292677b796 Fix CI: Complete build fixes
- Fix lint script sorting issue with LC_ALL=C locale
- Remove pebbledb direct dependency (use string constant)
- Add ci_setup.sh script to handle local replace directives
- Update CI workflow to use ci_setup.sh
- Add comprehensive CI_BUILD_GUIDE.md documentation

The go.mod replace directives pointing to local directories now work
for both local development and CI environments.
2025-09-19 05:26:43 +00:00
zeekay bf5727c99e fix: update Docker image references from avaplatform to luxfi
- Changed LUXD_IMAGE_NAME from avaplatform/luxd to luxfi/node
- Updated comments to reflect correct image names
- This fixes Docker build failures in CI
2025-09-06 17:11:43 +00:00
zeekay c74bd1e40e fix: update VM to implement block.ChainVM interface correctly
- Updated Initialize signature to match block.ChainVM interface
- Added chainCtx field to store chain context (interfaces.Runtime)
- Fixed DBManager usage with Current() method
- Added ParseBlock wrapper to return correct block.Block type
- Fixed AppSender type conversion for network initialization
- Updated constants.sh to use luxfi/node instead of luxd
- Store toEngine channel for consensus message passing

This fixes the compilation errors and aligns with the new consensus interfaces.
2025-09-06 13:52:18 +00:00
zeekay 10ccc2af40 fix: sort eth-allowed-packages.txt for lint compliance
- Alphabetically sorted all package imports
- Ensures lint script passes CI checks
2025-09-06 13:35:54 +00:00
zeekay f8e357bedd Update usage of log, metrics, etc 2025-08-04 17:05:04 +00:00
zeekay 028e0a5ca0 feat: update EVM implementation with latest improvements
- Update import paths to use luxfi/consensus instead of luxfi/snow
- Add protocol parameters for EIP-4844 blob gas support
- Improve database handling with proper metrics and caching
- Update dependency management scripts for better fork maintenance
- Fix various import paths and test references
2025-08-04 01:45:45 -05:00
zeekay 217a0fb02a Use luxfi/crytpo 2025-08-02 21:11:10 -05:00
zeekay b1979b4a02 Update EVM 2025-08-01 01:23:42 +00:00
zeekay 9990441454 Adapt EVM to be new C-chain 2025-07-24 00:25:45 -05:00
zeekay 19fe8dc2c7 Replace ethereum/go-ethereum references with luxfi/geth
- Updated go:generate comments to use luxfi/geth instead of ethereum/go-ethereum
- Fixed GitHub issue/PR references to point to luxfi repositories
- Updated comments referencing the Lux geth fork
- Part of the migration to unified EVM architecture with Lux consensus
2025-07-23 17:34:24 -05:00
zeekay 257304ad75 Disable Anthithesis 2025-07-22 01:42:32 -05:00
zeekay 7d8b52af3f Update copyrights properly 2025-07-21 21:10:03 -05:00
zeekay 66651957a4 Update docs 2025-07-21 19:04:03 -05:00
zeekay 8da155c1b1 Update imports 2025-07-18 01:55:16 +00:00
zeekay 9cb77af539 fix: remove ALL ava-labs/libevm imports
- Remove all references to github.com/ava-labs/libevm
- Clean up imports in state, triedb, and test files
2025-07-17 17:06:20 -05:00
zeekay 5bde5ae476 fix: resolve merge conflicts in test files
- Fixed merge conflicts in precompile_config_test.go
- Fixed merge conflicts in block_test.go
- Fixed merge conflicts in test_statedb.go
2025-07-17 16:44:45 -05:00
zeekay 4ac513dba4 Merge upstream subnet-evm v0.7.5
Merged latest upstream changes from ava-labs/subnet-evm v0.7.5 while preserving Lux customizations:
- Updated copyright headers to Lux Industries Inc 2025
- Kept Lux branding and network references
- Preserved custom Lux configurations
- Updated dependencies to latest versions
- Removed deprecated files (trie/, core/vm/, etc)
- Updated import paths to use go-ethereum libraries where applicable
2025-07-03 23:56:17 -04:00
zeekay 1d04d6d04f Update copyright headers to Lux Industries Inc 2025
Updated all copyright headers from "Lux Partners Limited" to "Lux Industries Inc" and updated the year to 2025 to reflect the new holding company structure.
2025-07-03 23:49:31 -04:00
Ceyhun OnurandGitHub 57bdf1b18a Fix docker image push (#1571) 2025-05-05 11:04:14 +00:00
37ff0fc4d7 Docker image combined tag (#1566)
Signed-off-by: Martin Eckardt <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Martin Eckardt <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
2025-04-24 11:56:27 +00:00
Quentin Mc Gaw 9f170c7057 Merge branch 'master' into libevm 2025-04-02 11:28:31 +02:00
3e7c79c2f5 chore(ci): simplify monitoring configuration (re-apply #1440) (#1545)
Signed-off-by: maru <[email protected]>
Co-authored-by: maru <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2025-04-02 08:57:51 +00:00
Arran SchlosbergandQuentin Mc Gaw cfb6dda961 refactor: use upstream core/types
Complete the transition of `core/types` to upstream code.

Note that the previous commit results in _all_ upstream types / vars / consts being in the `imports.go` file. This results in a strict partition of upstream and local identifiers so it is safe to simply change import paths.

1. Globally change all imports from `subnet-evm/core/types` to `libevm/core/types`;
2. Rename all `subnet-evm/core/types` imports to `customtypes` for ease of review here;
3. Dot import `libevm/core/types` in tests only to avoid hundreds of noisy changes.

See original PR https://github.com/ava-labs/coreth/pull/875
2025-04-01 10:14:52 +02:00
Arran SchlosbergandQuentin Mc Gaw d26f6e4f50 chore: disallow direct libevm/params import
Until a complete transition to a `libevm` package, it shouldn't be allowed to be imported directly.

Remove the package from the allowed list and move a `types` test into `package types_test` to avoid a circular dependency.

See original PR https://github.com/ava-labs/coreth/pull/874
2025-04-01 10:12:19 +02:00
Quentin McGaw 79daefb144 chore(rawdb): migration to plugin/evm/rawdb
See original PR https://github.com/ava-labs/coreth/pull/851
2025-04-01 10:11:51 +02:00
6bb66d3f81 chore(metrics): use libevm metrics package (#1508)
- use libevm/metrics instead of subnet-evm/metrics
- file kept and refactored `metrics/prometheus/prometheus.go` with the `Gatherer` implementation we use
- file kept and refactored `metrics/prometheus/prometheus_test.go`
- new file `metrics/prometheus/interfaces.go` added for refactoring
- geth global variable `metrics.Enabled` is set to true both in libevm and in `plugin/evm.VM.initializeMetrics`

Signed-off-by: Quentin McGaw <[email protected]>
Co-authored-by: Arran Schlosberg <[email protected]>
2025-04-01 10:04:35 +02:00
12984efb0b chore: release v0.7.3-rc.0 (#1537)
Co-authored-by: Ceyhun Onur <[email protected]>
2025-03-31 12:10:10 +00:00
a7cf34ae78 [ci] Simplify monitoring configuration (#1440)
Signed-off-by: maru <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2025-03-26 20:53:47 +00:00
maruandGitHub a663e0cda5 Switch from go install to go run to avoid cluttering shared bin path (#1510) 2025-03-26 15:22:33 +00:00
Quentin Mc Gaw 497f43672c Merge branch 'master' into libevm 2025-03-21 10:27:18 +01:00
maruandGitHub 07eef3a780 [docker] Fix multi-arch builds for unmerged avalanchego versions (#1474) 2025-03-10 18:09:17 +00:00
maruandGitHub 2a8bec7a80 Simplify avalanchego version maintenance (#1469) 2025-03-10 09:31:21 +00:00
Ceyhun OnurandGitHub 083e51fce9 fix multiarch docker binary build (#1461) 2025-03-04 23:26:34 +03:00
Ceyhun OnurandGitHub f1e3aed4e7 chore(ci): use go.mod version and remove unused lint.sh (#1456) 2025-03-03 19:44:12 +03:00
b5698242c8 chore: Bump avalanchego to master (#1443)
Co-authored-by: Martin HS <[email protected]>
Co-authored-by: Marius van der Wijden <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Tsachi Herman <[email protected]>
2025-02-24 06:41:24 -08:00
Ceyhun OnurandGitHub 21182dae3e bump avalanchego to v1.12.2 (#1436)
* bump avalanchego to v1.12.2

* remove unneeded var

* fix antithesis images

* add cross-compile setup to dockerfile

* use build_env.sh in Dockerfile

* export variables

* remove build_env.sh from Dockerfile

* remove comment

* revert
2025-01-30 00:39:20 +03:00
337a89abb5 sync coreth changes up to 3148809 (#1434)
* move config package (coreth c167754ba)

* refactor: Split config package so it doesn't import core, core/vm (#734)

Co-authored-by: Quentin McGaw <[email protected]>

* bump avalanchego (same as coreth's 4765329f)

* Apply upstream fixes (up to d3cc618) (#766)

Co-authored-by: maskpp <[email protected]>
Co-authored-by: Aaron Chen <[email protected]>
Co-authored-by: Shiming Zhang <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
Co-authored-by: Nathan <[email protected]>
Co-authored-by: Eric <[email protected]>

* fix panic if config duration is set to 0 (#765)

* fix mocks

* antithesis script patch: change dir for avalanchego build (for go.mod)

---------

Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: maskpp <[email protected]>
Co-authored-by: Aaron Chen <[email protected]>
Co-authored-by: Shiming Zhang <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
Co-authored-by: Nathan <[email protected]>
Co-authored-by: Eric <[email protected]>
2025-01-29 18:14:55 +03:00
Darioush JalaliandGitHub 513c6fa7ab libevm phase 2: Use libevm statedb from upstream (#1421)
Co-authored-by: Arran Schlosberg <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Meaghan FitzGerald <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: mountcount <[email protected]>
Co-authored-by: chuangjinglu <[email protected]>
Co-authored-by: guqicun <[email protected]>
Co-authored-by: Dmytrol <[email protected]>
fix problematic const name and some typos in comment (#1400)
fix some function names in interface comment (#1397)
close database on shutdown (#1403)
fix some function names in comment (#1405)
Fix Typos in Documentation (#1404)
fix test generator (#724)
2025-01-13 07:45:49 -08:00
Quentin McGawandGitHub 5983bc9577 chore(all): simplify mocks generation (#1413)
- Localized mockgen commands in the package where they are needed
- Generate mocks from your IDE directly
- Platform independent way of generating mocks
- Check automatically mocks are kept up to date with their matching interfaces
- Check automatically mocks all have a matching source controlled generation command
- Remove license headers for generated mocks
- Generating mocks section added in contributing document
- Use same mockgen version as specified in go.mod
2025-01-07 13:21:54 +01:00
a298553a2e add multiatch docker build to support arm (#1417)
* add multiatch docker build to support arm

* fix build img id

* Update .github/workflows/publish_docker.yml

Co-authored-by: Quentin McGaw <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update .github/workflows/publish_docker.yml

Co-authored-by: Quentin McGaw <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix vm id

* remove debug echo

* revert format change

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
2025-01-06 19:12:05 +03:00
02588fd2f1 bump avalanchego to master (updates x/crypto) (#1410)
* bump avalanchego to master (updates x/crypto)

* fix

* Encapsulate Signer (#693)

* Remove the bls dependency
---------
Co-authored-by: Darioush Jalali <[email protected]>

* bump to v1.12.1

---------

Co-authored-by: Richard Pringle <[email protected]>
2024-12-18 14:40:44 +00:00