Commit Graph
39 Commits
Author SHA1 Message Date
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 a716430871 Update generated files (gencodec, mocks)
- Run go generate to update all generated files
- Updates required after recent code changes
- Fixes CI build failures
2025-09-06 12:53:14 +00:00
zeekay b1979b4a02 Update EVM 2025-08-01 01:23:42 +00:00
zeekay 3ad3898e74 Fix more tests 2025-07-28 02:25:05 +00:00
zeekay 88c11d21de Use go-ethereum under hood for v1 2025-07-26 19:55:05 +00: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 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 8c6fac7b65 chore(ci): check gencodec generated files are up to date
- fix generation of code using type aliases and Go 1.23
- reproducible generation locally (pin gencodec version)
- CI keeps generated Go files up to date with other source code
- Generate missing files

See original PR https://github.com/ava-labs/coreth/pull/856
2025-04-01 10:11:55 +02:00
Quentin Mc Gaw 497f43672c Merge branch 'master' into libevm 2025-03-21 10:27:18 +01:00
Quentin McGaw dcbb43815a feat(internal/ethapi)!: reject eth_getProof queries for historical blocks
- default behavior for pruning mode to reject blocks before the 32 blocks preceding the last accepted block
- default behavior for archive mode to reject blocks before ~24h worth of blocks preceding the last accepted block
- archive mode new option `historical-proof-query-window` to customize the blocks window, or set it to 0 to accept any block number

See https://github.com/ava-labs/coreth/pull/719
2025-03-13 12:41:27 +01: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
a2d079ba23 Coreth nits (#1336)
* ensure blob gas is zero in cancun

* txlookup limit cleanup

* use full faker

* use full faker in api tests

---------

Co-authored-by: Darioush Jalali <[email protected]>
2024-09-09 16:33:11 +00: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
7703c87569 fix transaction history flag (#1169)
Co-authored-by: Darioush Jalali <[email protected]>
2024-05-14 09:59:56 -07:00
a2681d4083 Tx indexing fix (#1131)
* fix unindexor in state sync

* fix lint

* fix flaky test

* Update core/blockchain_test.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update core/test_blockchain.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update core/test_blockchain.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update core/test_blockchain.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix reviews

* readd delay for index init

* Update core/rawdb/accessors_state_sync.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* tx indexer fix: avoids using sleep in test (#1151)

* avoids using sleep in test

* track all goroutines

* trying harder

* add some debug information in case of fail

* Update core/blockchain.go

Signed-off-by: Darioush Jalali <[email protected]>

* Update core/blockchain.go

Signed-off-by: Darioush Jalali <[email protected]>

---------

Signed-off-by: Darioush Jalali <[email protected]>

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Darioush Jalali <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-04-17 17:37:25 +03:00
Darioush JalaliandGitHub 9883c6220c all changes from v.13.2-x branch (#1141) 2024-04-17 15:55:20 +03:00
Darioush JalaliandGitHub 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
Ceyhun OnurandGitHub 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
zeekay f8dd36a8be Update SubnetEVM 2024-01-03 09:44:09 +01: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
Ceyhun OnurandGitHub 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
Patrick O'GradyandGitHub 96272d3c54 Cache headers and logs using accepted depth instead of LRU (#387)
* save progress

* save progress

* saving more progress

* add more context

* more comments

* fix items

* fix removal

* passs config

* add additional comment

* move cache init

* remove TODO

* fix logs format

* nits

* insert into cache oldest first

* make bounded buffer generic

* cleanup FIFO cache

* cleanup comments

* simplify bounded buffer

* fix `Last`

* nits

* more comment nits

* fix min size of FIFOCache

* add NoOpFIFOCache

* move `FlattenLogs` to `types`

* fix off by 1

* revert LastBloomIndex

* fifo cache nits

* simplify bounded buffer

* move acceptedHeaderCache to headerchain

* remove unnecessary comment
2022-12-05 17:15:21 -05:00
Patrick O'GradyandGitHub 7aad9bc5bd Improved eth_getLogs caching (#386)
* change filter system

* pipe through indexing

* pipe config

* add more logs

* fix incorrect usage

* fix indexed usage

* fix light client logs

* add LastBloomIndex

* fix tests

* nits
2022-12-01 13:47:02 -08:00
aaronbuchwaldandGitHub 342f4af991 Migrate replay protection bypass for Nick's Method Signature txs (#377) 2022-11-29 13:39:16 -05:00
a7afbfc2c4 Bump avalanchego v1.9.3 and Coreth Migration through v0.11.3 (#369)
* Migrate coreth to v0.11.3 wip

* WIP

* WIP

* migrate eth/gasprice

* update block building

* Add skip upgrade check to config

* Finish up changes

* Add ctx to tests

* Remove ported timer

* mod tidy for cmd/simulator

* Remove dead testcode

* Fix typo

* Fixes

* Fixes

* sync auto-formatted changes (#371)

* sync auto-formatted changes

* add coreth version txt

* add latest coreth version

* Update plugin/evm/block_builder.go

Co-authored-by: Darioush Jalali <[email protected]>

* Update plugin/evm/vm.go

Co-authored-by: Darioush Jalali <[email protected]>

Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2022-11-29 09:39:18 -05:00
d166f0b144 Save cache periodically (#311)
* Add save cache periodically back

* Add trie clean journal params to config

* Load cache on startup

* Save cache after requested stop from saveCachePeriodically

* Update trie/database.go

Co-authored-by: Darioush Jalali <[email protected]>

* Update trie/database.go

Co-authored-by: Darioush Jalali <[email protected]>

* adds a UT for journal clean cache on shutdown (#314)

* adds a UT for journal clean cache on shutdown

* nit

* Update SaveCache to use half of available CPU cores

* Update trie/database.go

Co-authored-by: Darioush Jalali <[email protected]>

Co-authored-by: Darioush Jalali <[email protected]>
2022-10-24 16:44:24 -04:00
Ceyhun OnurandGitHub 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
aaronbuchwaldandGitHub d4b9fe6d08 Add cache config options for trie db and snapshot (#310) 2022-10-20 09:53:32 -07:00
Ceyhun OnurandGitHub 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
307b38cdb3 [AV-1753] merge coreth 0.8.12 (#132)
* merge coreth 0.8.12

* add nits (#133)

Co-authored-by: Patrick O'Grady <[email protected]>
2022-06-13 19:54:50 -07:00
Ceyhun Onur 99e74a2d78 merge coreth 0.8.9-rc.0 2022-04-01 03:47:21 +03:00
Patrick O'Grady ff2d59002f port fee history caching 2022-03-01 07:49:28 -08:00
Ceyhun OnurandPatrick O'Grady bb1fe9945d merge coreth-0.8.5-rc.2 2022-02-15 17:58:01 -08:00
Patrick O'Grady f6aef56afd first commit 2021-12-15 12:28:56 -08:00