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
41c58abb6e
Update EVM
2025-07-26 03:55:18 -05:00
zeekay
8e2a0e979a
Update architecture
2025-07-25 00:10:28 -05:00
zeekay
30986b4f91
Clean up project
2025-07-24 00:41:34 -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
2a19fe59a2
Update EVM module to remove local replace directives
2025-07-20 06:38:41 +00: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
59032cac49
chore(all): minor changes post-libevm merge ( #1552 )
2025-05-15 13:34:18 +00:00
Quentin Mc Gaw
9f170c7057
Merge branch 'master' into libevm
2025-04-02 11:28:31 +02:00
Quentin McGaw
4f86a8c129
chore(rawdb): move plugin/evm/rawdb to plugin/evm/customrawdb
...
See original PR https://github.com/ava-labs/coreth/pull/888
2025-04-01 10:15:14 +02: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
6527c2133f
chore(core/rawdb): add ExampleInspectDatabase to check custom behavior
...
See original PR https://github.com/ava-labs/coreth/pull/790
2025-04-01 10:10:04 +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
eae544c463
chore(all): fix different typos ( #1506 )
...
Signed-off-by: pudongair <[email protected] >
Signed-off-by: linchizhen <[email protected] >
Signed-off-by: lencap <[email protected] >
Co-authored-by: pudongair <[email protected] >
Co-authored-by: linchizhen <[email protected] >
Co-authored-by: lencap <[email protected] >
2025-03-25 19:25:23 +00: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
e3a01fb149
use libevm: params, core/vm, eth/tracers/* + some of core/types ( #1380 )
...
* format: as coreth
* use libevm: params, core/vm, eth/tracers/* + some of core/types (#662 )
Co-authored-by: Arran Schlosberg <[email protected] >
* format: as subnet-evm
* fix coreth formatting
* fix mocks
* fix contract deployer allowlist
* nits
* nits
* nit
* fix test import loop
* fix imports
* nits
* fix
* add TODO
---------
Co-authored-by: Arran Schlosberg <[email protected] >
2024-12-12 10:04:35 -08:00
mountcount and GitHub
f4c6dbd6f6
chore: fix problematic const name and some typos in comment ( #1400 )
...
Signed-off-by: mountcount <[email protected] >
2024-12-02 11:38:57 +03: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
6a8e82fad4
Bump avalanchego to master ( #1268 )
...
* Bump avalanchego to master
* Update avalanchego x (#1275 )
* remove test tags
* use avago default
* revert ws diffs
* remove ginkgo test tags
---------
Co-authored-by: Ceyhun Onur <[email protected] >
2024-08-12 15:59:42 +00:00
5fed36811e
Update avago 1.11.10 rc0 ( #1241 )
...
* Update to latest p2p API (#594 )
* sdk app errors
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nti
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nti
Signed-off-by: Joshua Kim <[email protected] >
---------
Signed-off-by: Joshua Kim <[email protected] >
* update go mod
* Remove block.Status (#593 )
* Remove block.Status
* nit
* nit
* nit
* update coreth indirect dep
* fix linter
* use rc.0 tag for e2e tests
* eupgrade: base definitions (#603 )
* eupgrade: base definitions
* updates
* nit: consistently use EUpgrade for replace later
* update test configs
* refactor json genesis specs in vm_test.go
* Update params/config.go
Signed-off-by: Darioush Jalali <[email protected] >
---------
Signed-off-by: Darioush Jalali <[email protected] >
* Update avalanchego v1.11.10 prerelease (#607 )
* update avago 668b452
* update avago
* update with test build tags
* update golangci
* update avalanchego
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Ceyhun Onur <[email protected] >
* update to latest avago
* add test build tags to allowlist pkg
* add test tags
* add test tags to bind cmd
* add gingko test tags
* revert cosmetic changes
* fix test chain config timestamps
---------
Signed-off-by: Joshua Kim <[email protected] >
Signed-off-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Joshua Kim <[email protected] >
Co-authored-by: Stephen Buttolph <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
2024-07-26 19:41:18 +03:00
Darioush Jalali and GitHub
d9bae03214
resolve race in closing sync segments channel ( #1201 )
...
* resolve race in closing sync channel
* fix comment
2024-06-04 06:56:58 -07:00
Darioush Jalali and GitHub
f8de36717c
Fix overflow in state sync eta ( #1195 )
...
* Fix overflow in state sync eta
* add UT
* use max
* use timer.EstimateETA
2024-05-30 15:32:46 +00:00
welfuture and GitHub
e8db8fca17
chore: fix some function names ( #1174 )
...
Signed-off-by: welfuture <[email protected] >
2024-05-29 19:08:32 +03: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
7dce578e09
chore: fix some comments ( #1134 )
...
Signed-off-by: JohnEndson <[email protected] >
Co-authored-by: Ceyhun Onur <[email protected] >
2024-04-16 20:21:56 +03:00
Darioush Jalali and GitHub
b98246b716
squashed all from geth-v1.12.2-x ( #1117 )
...
* squashed all from geth-v1.12.2-x
* fix merge
2024-03-06 12:32:17 -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
zeekay
f8dd36a8be
Update SubnetEVM
2024-01-03 09:44:09 +01:00
e77c9c97cc
coreth sync: 0.12.4-rc.0 -> 0.12.7 ( #975 )
...
* coreth sync: 0.12.4-rc.0 -> 0.12.7
* Review coreth 0.12.7 (#980 )
* Apply suggested changes from https://github.com/ava-labs/coreth/pull/381/files
* drop reexec=0
* add txHashes
* bump avalanchego
* remove manager
* fix compat test
* bump version for e2e tests
---------
Co-authored-by: Ceyhun Onur <[email protected] >
2023-11-07 14:35:02 -05:00
4721f3ebe2
Sync coreth v0.12.4 rc0 ( #694 )
...
* apply diff to rc0
* replace coreth with subnet-evm
* go mod tidy
* remove must commit
* remove apricots
* replace coreth with subnet-evm
* rename banff and cortina
* test memory db
* add dUpgrade
* fix errors
* sync with v0.12.4-rc0
* more diffs
* change templates
* readd preparePredicateSlots
* run goimports
* readd tx allow list check to txpool
* Fix tests
* readd subnet evm check for tests
* fix tests
* add gas limit & coinbase fakers
* Fix timestamp types
* check error from newblockchain
* fix gas limit in simulated genesis
* downgrade ci to go 1.19
* gofmt files
* rebump go to 1.20
* bump anr to latest
* bump anr to latest
* prepare predicate storage slots in Subnet-EVM
* uncomment tests
* change order of airdrop memory cleanup
* add utils import
* Coreth 0.12.4 x apply (#720 )
Co-authored-by: Darioush Jalali <[email protected] >
* move instruction sets
* revert unpack changes
* reduce diffs
* move genesis verify to vm (#753 )
* move genesis verify to vm
* fix comment
* set a correct default from genesis
* fix log
* revert change to vm.go
---------
Co-authored-by: Darioush Jalali <[email protected] >
* avoid adding/removing GasLimits in tests (#755 )
* move genesis verify to vm
* fix comment
* set a correct default from genesis
* fix log
* revert change to vm.go
* avoid adding/removing GasLimits in tests
* nit
---------
Co-authored-by: Ceyhun Onur <[email protected] >
---------
Co-authored-by: Darioush Jalali <[email protected] >
2023-07-26 09:45:17 -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
715ca80766
use generic set ( #391 )
...
* use generic set
* bump version
* nit
* update inner go mod
* Bump rpcchainvm version in compatibility.json
Co-authored-by: aaronbuchwald <[email protected] >
Co-authored-by: Stephen <[email protected] >
2022-12-06 18:09:37 -07: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