zeekay
4ac18547fc
Update to v2 module path and fix imports
2025-08-02 13:13:43 -05:00
zeekay
b69677733e
fix: remove v2 from internal imports
2025-08-02 12:55:11 -05:00
zeekay
69b8f99818
fix: update imports to use v2 paths
2025-08-02 12:54:33 -05:00
zeekay
eba7646210
Fix import
2025-08-02 12:47:52 -05:00
zeekay
204ccb43c0
fix: update node imports to v2 path
2025-08-02 12:40:21 -05:00
zeekay
b4f8fee98a
fix: correct double v2 in imports
2025-08-02 12:34:16 -05:00
zeekay
e8a1c06f73
feat: update to v2 module path for version 2.0.0-alpha.1
2025-08-02 12:31:47 -05:00
zeekay
11827696a4
Update EVM
2025-07-26 17:36:32 -05:00
zeekay
f1ab4c5948
refactor: unify logging to use luxfi/log with zap implementation
...
- Migrate from geth/log to luxfi/log throughout EVM codebase
- Update luxfi/log to use zap instead of slog for better performance
- Fix all compatibility issues with node and EVM logging interfaces
- Rename Write method to WriteLog to avoid io.Writer conflict
- Add GlogHandler and FromLegacyLevel exports for internal/debug compatibility
- Update all test files to use new logging interface
This unifies the logging implementation across luxfi/node and luxfi/evm,
using zap as the underlying logger for improved performance.
2025-07-26 08:27:07 -05:00
zeekay
402cc58096
Unify logging to use luxfi/log everywhere
...
- Replace all 115+ files using github.com/luxfi/geth/log with github.com/luxfi/log
- Remove complex logger adapters
- Create minimal compatibility layer (asGethLogger) for external dependencies
- Fix go.mod version issue with luxfi/node
- Simplify logging infrastructure for better performance and maintainability
2025-07-26 07:28:27 -05:00
zeekay
41c58abb6e
Update EVM
2025-07-26 03:55:18 -05:00
zeekay
8e2a0e979a
Update architecture
2025-07-25 00:10:28 -05:00
zeekay
46ea495f07
refactor: rename network_upgrades_alwayson.go to legacy_upgrades.go
...
Rename file to better differentiate from Lux-specific code as requested.
All upgrade functions continue to return true for clean genesis setup.
2025-07-24 14:53:07 -05:00
zeekay
e79433b58a
Update LP support
2025-07-24 02:25:18 -05:00
zeekay
30986b4f91
Clean up project
2025-07-24 00:41:34 -05: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
7d8b52af3f
Update copyrights properly
2025-07-21 21:10:03 -05:00
zeekay
ddafd6c12e
Update for CLI compatibility
2025-07-21 12:57:42 -05:00
zeekay
2a19fe59a2
Update EVM module to remove local replace directives
2025-07-20 06:38:41 +00:00
zeekay
608f45f8e9
Fix build, update to latest node infra
2025-07-18 15:07:36 -05:00
zeekay
8da155c1b1
Update imports
2025-07-18 01:55:16 +00: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
fc1662afd8
Fix import paths and add missing interface stubs for subnet-evm v0.7.5
...
- Update imports from luxdefi/node to luxfi/node
- Replace libevm interfaces with direct go-ethereum imports
- Add placeholder interface files for missing dependencies
- Update go.mod to use local luxfi/node path
- Fix merge conflicts in multiple files
- Create stub implementations for missing packages
This allows the project structure to align with v0.7.5 requirements
but the build still needs additional work to be fully functional.
2025-07-04 00:03:10 -04: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
Quentin McGaw and GitHub
9afa615197
chore(all): use upstream protocol params ( #1563 )
2025-05-15 12:36:18 +00:00
Arran Schlosberg and Quentin 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
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
Quentin McGaw and Arran Schlosberg
6d0bf13fbb
chore(core/types): remove block.go and import Block and Body from libevm
...
- `BlockGasCost` getter pure function
- New import from libevm's `core/types`: `Block`, `Blocks`, `Body`, `CalcUncleHash`, `NewBlock` and `NewBlockWithHeader`
- remove now unneeded `core/types/block.go`
See original PR https://github.com/ava-labs/coreth/pull/760
Signed-off-by: Quentin McGaw <[email protected] >
Co-authored-by: Arran Schlosberg <[email protected] >
2025-04-01 10:10:03 +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
Darioush Jalali and GitHub
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
74327ea329
Code sync to go-ethereum v1.13.14 ( #1152 )
...
* all changes from v.13.2-x branch
* squash initial changes
* remove unneeded files
* fix lint
* gas estimation fix
* accounts/keystore: fix test with sleep
* rpc fixes
* try with a smaller limit
* logging
* change the trim fn
* remove main_test from rpc
* txpool: remove unused "PendingFrom"
* set local-txs-enabled in load tests
* ready to format
* format: remove upstream go-ethereum
* format: rename packages as fork
* Revert "format: remove avalanche header"
This reverts commit 09d505bd5e906ac186643061437e665b116b5bf6.
* fix logging
* deadcode linting
* more linting
* fix mock
* fix unused
* expecteds
* passing UTs
* add comment
* unused
* resolve some open issues
* undo script change
* test resillience
* fix compile
* wip
* test is fixed
* fix expecteds
* nits
* fix merge
* remove todos
* try
* try
* try
* docker stuff
* fix
* does this work
* fix
* hardcode for now
* fix
* hardcode for now
* remove TODO comments
* fix
* make txindexer more similar to upstream
* peer/network: move ctx check
* enforce tips in miner
* align nits with arr4n
* remove use of deprecated type core.GenesisAccount
* Revert "peer/network: move ctx check"
This reverts commit f37bc6bc3ef228bbd6f997b00871aabfcd37403e.
* fix ctx check
* fix ctx again
* undo vm_test changes
* reduce diffs with ARR4N's branch
* update for enforcing gasTip
* unbuffer chan
* update to use commit(true)
* use TestOnlyAllowDuplicateBlocks
* Revert "update to use commit(true)"
This reverts commit 4aa9cc9efb36586a93cea9a39842d4d304b584b6.
* overflow in state_transition err
* add http body limit flag (#1327 )
* Tail lock revisited (#1328 )
* avoid modifying the pointer
* improve readability
* prevent race in tail reading
* improve repairTxIndexTail readability
* use shared func
---------
Co-authored-by: Ceyhun Onur <[email protected] >
2024-09-02 17:56:46 +03:00
Darioush Jalali and GitHub
365a680a4c
remove cross-chain handlers ( #1286 )
...
* remove cross-chain handlers
* fix version
* bump avalanchego
* update versions.sh
2024-08-15 12:18:23 -07:00
0dc5c02e45
Geth v1.13.8 ( #1146 )
...
* all changes from v.13.2-x branch
* squash initial changes
* remove unneeded files
* fix lint
* gas estimation fix
* accounts/keystore: fix test with sleep
* rpc fixes
* try with a smaller limit
* logging
* change the trim fn
* remove main_test from rpc
* txpool: remove unused "PendingFrom"
* set local-txs-enabled in load tests
* bump avago
* bump coreth
* resync (#1164 )
* resync
* reapply fix
* review comments
* remove fixit comment
* fix space in log levels (#1167 )
* fix legacy lvls (#1175 )
* fix legacy lvls
* fix simulator logger
* fix typo in rlpgen comment
* update avalanchego to version with coreth on master branch
---------
Co-authored-by: Ceyhun Onur <[email protected] >
2024-05-16 10:31:36 -07:00
Darioush Jalali and GitHub
9883c6220c
all changes from v.13.2-x branch ( #1141 )
2024-04-17 15:55:20 +03:00
Ceyhun Onur and GitHub
2233fa11c4
Sync coreth 0.12.11 rc.3 ( #1075 )
...
* rename pkg
* update to coreth 0.12.11-rc.3
* revert pkg rename
* fix coreth related changes
* fix allowed pkgs
* run mockgen
* reduce diffs with coreth
* remove atomic stats
* fix rpc get block receipts test
2024-02-02 06:29:12 -08:00
Darioush Jalali and GitHub
972ed7d1d3
move trie generation helper out of trie/ ( #1053 )
...
* remove ethdb
* refactor: move AllowUnfinalizedQueries out of vm.Config
* move trie generation helper out of trie/ (#359 )
2024-01-24 00:10:25 +03:00
Darioush Jalali and GitHub
24a6a05cb8
remove ethdb ( #1051 )
2024-01-23 23:13:38 +03:00
ce843d4cd1
P2p sdk handlers ( #1031 )
...
* rename tx handlers
* add p2p sdk handlers
* fix tests
* fix imports
* bump min go version
* downgrade golangci
* remove noop handler
* bump avago rc
* fix uint64
* bump avalanchego rc version
* fix linter
* revert txpool uint change
* bump subnet-evm version
* run simulator in a different step
* remove load test from precompile tests
* run simulator in a different step
* remove load test from precompile tests
* rename simulator to load test
* parallelize e2e steps
* use checkout
* split to different workflows
* move to same folder
* bump avago
* add time to codec
* fix load test (#1043 )
* tweak global limit
* uncomment submit
* update consts
* update avalanchego version
* fix compilation err
* simpler fix
* remove mempool configs
* bump latest avago rc
* fix tests
* update avalanchego
* fix mockgen
* bump ANR
* remove unnecessary log levels
* Fix bloom reset (#1049 )
* add UT for eth tx pool subscribe
* fix eth tx pool subscribtion
* don't use journal
* simplify test
* increase timeout
* Update plugin/evm/tx_gossip_test.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Ceyhun Onur <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
* Fix racey bloom access and replace time.Sleep with require.Eventually
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Patrick O'Grady <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
Co-authored-by: Stephen Buttolph <[email protected] >
2024-01-23 17:23:08 +03:00
zeekay
f8dd36a8be
Update SubnetEVM
2024-01-03 09:44:09 +01:00
Dan Laine and GitHub
53a0b4a668
Add contexts ( #874 )
...
* add context to SendAppRequest signature
* stop waiting on app response upon context cancellation
* add contexts in other network send functions
* crosschain cancellation
* app request cancellation
* app request any on cancellation
* fixes
* change ErrorContains to ErrorIs
* treat as fatal TODO
* use context
* simplify texts
* test nits
* comment; make responseChan buffer length 1
* update test
* peer: remove TODOs for treating appSender err as fatal
2023-10-03 19:51:51 -04:00
Darioush Jalali and GitHub
534ee8f8fc
Make state sync request size configurable ( #614 )
...
* Make state sync request size configurable
* finish passing the parameter
* set default to 256
2023-04-12 14:26:11 -04:00
aaronbuchwald and GitHub
b592052bd4
Start coreth migration ( #552 )
...
* Start coreth migration
* Bump version to v0.4.11 and avalanchego dep
* goimports core/blockchain.go
* Update compatibility.json
* Update compatibility in README
* Bump avalanchego dep to v1.9.10
2023-03-01 17:44:38 -08:00
Ceyhun Onur and GitHub
4446703a0a
Coreth 0.11.6 sync ( #436 )
...
* sync changes from coreth-0.11.6
* remove diff patch
* revert format changes
* nits (#441 )
2023-01-23 14:06:36 -05:00
Ceyhun Onur and GitHub
ce7fddfba3
sync with coreth-v0.10.1 ( #287 )
...
* sync with coreth-v0.10.1
* fix generate test
* go mod tidy in simulator
* my attempt at porting corethv0.10.1
* reconcile trie
* more reconcile
* getting closer
* reduce diff
* fix
* move to blockchain api
2022-10-24 16:13:37 -04:00
Ceyhun Onur and GitHub
a6d013d4ab
Coreth 0.8.16 rc2 ( #216 )
...
* Unwrap ETHChain
* hook in vm.ethConfig
* statesync for subnet-evm
* remove unused configJSON
* add err check
* add synchronization
* add default config values
* delay initialization of gossiper
* Revert "add synchronization"
This reverts commit 2e8c93e58d7853de15a21ebd1460a3cd3858a6af.
* fix test
* fix statesync code prefix issue
* fix comment
* wip
* wip2
* add coreth changes
* Merge branch 'master' into coreth-0.8.16-rc2
* updates
* remove coreth from go.mod
* fix linter
* fix
* update gas prices (?)
* fix tracer test
* move dependabot yml to upper file
* more changes ported in from coreth 0.8.16
* Update sync/README.md
Co-authored-by: Ceyhun Onur <[email protected] >
* Update sync/README.md
Co-authored-by: Ceyhun Onur <[email protected] >
* Update sync/README.md
Co-authored-by: Ceyhun Onur <[email protected] >
* Update core/rawdb/accessors_state_sync.go
* port missing file from coreth
* fix-import
* subscribe before goroutine
* Rebase apply coreth diff onto statesync
* fix EOF in tests
* Nits (#265 )
* Nits
* Add EIP-1559 link to readme
* Fix linting introduced by merge
2022-09-22 18:42:37 +09:00
Darioush Jalali and GitHub
4d160e239e
statesync for subnet-evm ( #189 )
...
* Unwrap ETHChain
* hook in vm.ethConfig
* statesync for subnet-evm
* remove unused configJSON
* add err check
* add synchronization
* add default config values
* delay initialization of gossiper
* Revert "add synchronization"
This reverts commit 2e8c93e58d7853de15a21ebd1460a3cd3858a6af.
* fix test
* fix statesync code prefix issue
* fix comment
* Update sync/README.md
* Update sync/README.md
* Update sync/README.md
* Update core/rawdb/accessors_state_sync.go
* port missing file from coreth
* fix-import
* subscribe before goroutine
2022-08-30 09:57:09 -04:00