54 Commits
Author SHA1 Message Date
zeekayandHanzo Dev 98c42cef80 evm: bump plugin VM version v0.18.18 -> v0.18.19 for 0x9999 genesis-injection fix
rpcChainVM protocol unchanged (42) — node compatibility preserved. Pairs with
the genesis-injection fix (0bd9927a2) for evm module tag v1.104.1.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-02 16:57:41 -07:00
zeekay 3d0966555f fix(plugin/evm): force HashScheme default to stop fresh L2s wedging on pathdb
On lux-mainnet 2026-06-02 every newly-created L2 EVM chain (hanzo, zoo,
spc, pars) panicked at chain create with:

  panic in eth.New: unable to commit genesis block to statedb:
    triedb parent [0x56e81f17171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421] layer missing

Root cause: the operator does not specify state-scheme in chain config, so
vm.ethConfig.StateScheme = "" enters eth.New. backend.go then calls
customrawdb.ParseStateSchemeExt("", chainDb) which delegates to
geth/rawdb.ParseStateScheme — upstream returns PathScheme as the implicit
default for any database with no stored scheme (every fresh L2). That
silently re-enables path mode even though vm.go's preflight at the top
of Initialize hard-refuses it. Genesis commit then runs through pathdb's
Update with parentRoot=EmptyRootHash and dies the moment the layer tree
is consulted.

Fix: extract the scheme normalisation into resolveStateScheme() and lock
the empty-string default to HashScheme here, before backend.go can inherit
geth's path-by-default. Path explicit is still refused as before, so this
is purely an operator-default fix.

Adds:
- plugin/evm/vm_statescheme_test.go: TestResolveStateScheme covering all
  four input cases (empty→hash, hash passthrough, path refused, custom
  passthrough).
- core/genesis_pathdb_test.go: TestGenesisCommit_PathDB_{FreshDB,
  SetupGenesisBlock_FreshDB} document the upstream pathdb genesis-commit
  invariant on a fresh in-memory DB so future drift here is caught
  immediately.

Also bumps compatibility.json to register v0.18.4-v0.18.18 with the
existing RPC chain VM protocol (42); restores TestCompatibility (which
was failing on main since v0.18.4 because the table was never updated).

Version: v0.18.17 -> v0.18.18.
2026-06-02 11:53:21 -07:00
zeekay 57cadd0ad1 fix: add v0.8.x versions to compatibility.json
Add v0.8.13 to the compatibility mapping for RPC version 42.
2025-12-21 09:46:18 -08:00
zeekay e000836576 fix: add v0.8.x versions to compatibility.json 2025-12-21 02:51:44 -08:00
zeekay 1fb1149624 Fix v0.8.x to use rpcchainvm=42 for luxd v1.21.0 compatibility 2025-12-09 12:44:32 -08:00
zeekay 35ea4c3ad3 Add v0.8.x versions to compatibility.json
- v0.8.2, v0.8.1, v0.8.0 with RPC version 43
- v0.7.10, v0.7.9 with RPC version 42
2025-12-09 12:38:16 -08:00
zeekay fa04ea03ce fix: handle missing snapshot layers gracefully in flattenSnapshot
When tests use SnapshotNoBuild: true with SnapshotLimit > 0, snapshot
layers are initialized but not built for new blocks. Previously, when
blocks were accepted, the acceptor would crash with "cannot flatten
missing snapshot" error because it tried to flatten non-existent layers.

This fix adds:
- HasBlockLayer(blockHash) method to snapshot.Tree to check layer existence
- Check in flattenSnapshot to skip flattening if layer doesn't exist

This properly handles test configurations where snapshots are enabled
but layers aren't built, allowing all 63 packages to pass with 0 failures.
2025-12-04 00:23:59 -08:00
zeekay b1979b4a02 Update EVM 2025-08-01 01:23:42 +00:00
Ceyhun OnurandGitHub d301d57063 chore: release v0.7.5 (#1609) 2025-06-26 13:01:58 +00:00
b76ca05159 Releases/v0.7.4 rc.0 (#1592)
Co-authored-by: Stephen Buttolph <[email protected]>
2025-06-04 22:41:59 +00: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
Ceyhun OnurandGitHub 7de5659d16 bump version to v0.7.2 (#1467) 2025-03-05 00:19:55 +03: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
Ceyhun OnurandGitHub 9f69e1d752 bump versions (#1419) 2025-01-07 20:48:11 +00:00
Ceyhun OnurandGitHub bb5aab6ce6 bump versions (#1406)
* bump avago to v1.12.0

* close database on shutdown

* update release notes

* rename verdb

* close only if standalone db

* bump avago branch version

* bump avago

* bump versions

---------

Signed-off-by: Ceyhun Onur <[email protected]>
2024-12-10 20:36:24 +03:00
Ceyhun OnurandGitHub 513e24c51e bump avago to v1.11.13-rc.1 (#1389)
* fix start timestamp

* add client

* rename sov to l1validator

* bump avago to v1.11.13-rc.1

* update compatibility
2024-11-16 01:22:56 +03:00
Ceyhun OnurandGitHub e8709ba854 bump versions (#1370) 2024-10-22 06:42:39 -07:00
Ceyhun OnurandGitHub 1931caf2dc prepare for release v0.6.10 (#1346) 2024-09-17 09:22:32 -04:00
Ceyhun OnurandGitHub 66f180e50e Bump avago rc (#1330)
* bump avago to rc

* go mod tidy

* update versions
2024-09-04 12:08:47 +03: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
73bff721bb Subnet evm 0.6.7 (#1229)
* Fix VM.GetBlockIDAtHeight (#595)

* Fix and optimize GetBlockIDAtHeight

* Add test

---------

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

* bump subnet-evm & avago

* update coreth tip

* bump mingo version

* Update scripts/versions.sh

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

* go mod tidy

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-07-11 12:44:37 +03:00
58d966eb1b Avago 1.11.7 (#1206)
* remove notes/ (#571)

* Remove optional gatherer (#563)

* Remove optional gatherer

* nit

* Do not register chain state metrics when metrics are disabled

---------

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

* add compatibility for v0.6.6

* update avago in readme

---------

Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
2024-06-06 19:03:44 +03:00
ccc2391a2b Bump versions (#1185)
* state sync: initialize snapshots in bootstrap set mode (#557)

* state sync: initialize snapshots in bootstrap set mode

* move clear summary path

* undo rename

* improve abortGeneration locks (#559)

* bump versions

* bump latest coreth version

* bump min go version

---------

Co-authored-by: Darioush Jalali <[email protected]>
2024-05-23 17:12:38 -04:00
Ceyhun OnurandGitHub 69e5670ce0 bump versions (#1153)
* bump versions

* update avago versions

* fix tests
2024-05-01 14:39:26 +00:00
5a73dd477f bump avago v1.11.3 (#1130)
* bump avago v1.11.3

* fix tests

* use test validator state in test context

* fix tmpnet path

* Integrate stake weighted gossip selection (#511)

* Integrate stake weighted gossip selection

* nit

* merged

* add validity check

* remove redeclaration

* use compressed bytes

---------

Co-authored-by: Stephen Buttolph <[email protected]>
2024-03-25 15:00:54 -04:00
Ceyhun OnurandGitHub d5d638ab78 bump version to v0.6.3 (#1124) 2024-03-18 14:16:21 +03:00
Ceyhun OnurandGitHub 7b87893eab Coreth sync v0.13.1 rc.5 (#1111)
* sync coreth v0.13.1-rc.5

* fix tests

* fix upgrade bytes test

* bump subnet-evm version

* sort default configs

* sort default configs
2024-03-01 17:29:13 +01:00
Ceyhun OnurandGitHub 1235e8324a bump versions (#1102) 2024-02-23 21:24:38 +00:00
Darioush JalaliandGitHub 66fb868ad2 prepare v0.6.0 release (#1101)
* prepare v0.6.0 release

* changes for v33

* bump ANR
2024-02-22 17:11:14 -05: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
315cf93071 prepare release v0.5.10 (#1019)
* bump versions

* change p2p network code

* Revert "change p2p network code"

This reverts commit 7960d9e524.

* Use `p2p.Network` (#384)

---------

Co-authored-by: Joshua Kim <[email protected]>
2023-12-07 00:11:32 +03:00
Darioush JalaliandGitHub acb8bc67d8 bump avalanchego to v1.10.15 (#988)
* bump avalanchego

* remove manager

* fix compat test

* bump version for e2e tests

* update readme
2023-11-07 13:59:22 -05:00
Ceyhun OnurandGitHub 1b6ddf5720 bump avalanchego to v1.10.14 (#971)
* bump avalanchego to v1.10.14

* fix versions in readme

* bump min golang version

* bump anr
2023-10-26 12:42:12 -04:00
Ceyhun OnurandGitHub a2ba3700ff bump subnet-evm and avalanchego versions (#965) 2023-10-19 20:24:06 +03:00
Ceyhun OnurandGitHub 95817a816e bump versions (#880)
* bump versions

* bump anr
2023-09-20 20:47:36 +03:00
aaronbuchwaldandGitHub 50cf793fec Fix compatibility version (#822) 2023-08-29 11:30:28 -04:00
aaronbuchwaldandGitHub ce59e115b5 add mocks for precompile tests (#812)
* add mocks for precompile tests

* Update compatibility

* Bump AvalancheGo dep to v1.10.9

* Bump ANR dep to be compatible with ago v1.10.9

* revert ConfigurationBlockContext changes
2023-08-25 12:58:05 -04:00
aaronbuchwaldandGitHub 0eef0d28e2 Bump avalanchego dep and update version for next release (#770)
* Bump avalanchego dep and update version for next release

* Update cache sizes

* Update flag in run script to replace staking-enabled=false
2023-08-02 15:28:19 -04:00
aaronbuchwaldandGitHub 2d89a14f35 Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release (#757)
* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release

* bump anr version to v1.7.1
2023-07-26 12:05:44 -04:00
Ceyhun OnurandGitHub e7d1a6c504 bump version to v0.5.2 (#681)
* bump version to v0.5.2

* downgrade avalanchego to 1.10.2

* update compatibility
2023-06-26 21:54:10 -04:00
aaronbuchwaldandGitHub 532a0e9581 Bump avalanchego dep to v1.10.1 and bump version to v0.5.1 (#634) 2023-05-01 12:21:02 -04:00
aaronbuchwaldandGitHub 4a550f04b1 Bump avalanchego to v1.10.0 (#604)
* Bump avalanchego to v1.10.0-fuji-rc.2

* Add comptibility version

* Bump avalanchego dep to v1.10.0 and update version to v0.5.0

* Fix interface changes from avalanchego

* Update compatibility in README
2023-04-12 13:04:01 -04:00
427afc5457 Start release cycle v0.4.12 (#559)
* start v0.4.12 release cycle

* add setup action to lint ci for proper go version

* Bump version in plugin/evm/version.go

* Remove go version pin

* Revert "Remove go version pin"

This reverts commit e651bebbdcb51afab1291374ff5c20c4a14f20c5.

* bump golangci-lint-acion to @v3

* bump golangci lint

* try 1.48

* golangci-lint v1.51 and goimports leveldb file

* migrate linting changes from coreth

* goimports and fix diagram comments

* Fix bad goimports changes

---------

Co-authored-by: Darioush Jalali <[email protected]>
2023-03-07 09:07:17 -05:00
aaronbuchwaldandGitHub 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
aaronbuchwaldandGitHub 38dcbacbca Start v0.4.10 release cycle (#533) 2023-02-21 15:08:47 -08:00
aaronbuchwaldandGitHub d1157939b7 Bump avalanchego to v1.9.9-rc.4 (#526)
* Bump avalanchego to v1.9.9-rc.4

* Fix imports

* Bump compatibility.json for latest avalanchego release
2023-02-20 14:47:36 -08:00
aaronbuchwaldandGitHub b5faa4f15b Bump avalanchego dep to v1.9.7 and start v0.4.9 release cycle (#433)
* Bump avalanchego dep to v1.9.7 and start v0.4.9 release cycle

* Update compatibility.json and README
2023-01-23 13:44:45 -05:00
aaronbuchwaldandGitHub a4ad7cdeca Bump to v0.4.8 and bump AvalancheGo dependency to v1.9.6 (#429)
* Bump avlanachego dep to v1.9.6 and bump version to v0.4.8 for release

* Fix simulator go mod
2023-01-11 17:45:22 -05:00
aaronbuchwaldandGitHub 93258aa300 Bump avalanchego to v1.9.5 (#415)
* Bump avalanchego to v1.9.5-rc.0

* go mod tidy simulator

* Bump avalanchego v1.9.5-rc.1

* Bump avalanchego

* bump avalanchego and bump sevm version

* go mod tidy simulator

* Add rpcchainvm protocol version to compatibility.json
2022-12-22 14:12:10 -05:00
aaronbuchwaldandGitHub 49458d22df Start v0.4.6 release cycle (#409) 2022-12-12 10:41:39 -05:00