359 Commits
Author SHA1 Message Date
07cefe7fd6 chore: fix some function names (#1270)
Signed-off-by: highcloudwind <[email protected].>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-08-12 21:39:57 +03:00
Ceyhun OnurandGitHub 69d3d83412 rename e upgrade to etna (#1276) 2024-08-12 18:06:29 +00: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
Darioush JalaliandGitHub 9ddf51341e fix TestMempoolEthTxsAppGossipHandling (#1273) 2024-08-09 08:29:05 -07:00
Darioush JalaliandGitHub 406c598ba2 cleanup: use p2p.TxGossipHandlerID (#1266) 2024-08-02 17:54:33 +00:00
Darioush JalaliandGitHub bf61c6a76f add p2p handler for acp-118 sig request (#1260)
* add p2p handler for acp-118 sig request

* update to use addressed payload and hash types from avago

* add future TODOs

* nit: log unexpected type in error

* nit
2024-08-02 10:16:33 -07: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
Darioush JalaliandGitHub 204f21de2d unneeded SetAllowUnfinalizedQueries (#1204) 2024-06-06 10:30:25 +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
Darioush JalaliandGitHub b0442683cd TestVMUpgrades: extend timeout and stop ticker (#1177)
* TestVMUpgrades: extend timeout and stop ticker

* other instance
2024-05-17 08:54:25 -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
7703c87569 fix transaction history flag (#1169)
Co-authored-by: Darioush Jalali <[email protected]>
2024-05-14 09:59:56 -07:00
Ceyhun OnurandGitHub 69e5670ce0 bump versions (#1153)
* bump versions

* update avago versions

* fix tests
2024-05-01 14:39:26 +00:00
Ceyhun OnurandGitHub 616533416b E upgrade config (#1135)
* introduce e upgrade

* map upgrades

* check if upgrade is non-nil

* fix checkForks

* Fix tests

* revert test changes

* fix tests

* remove block no param from IsCancun

* add UT

* use avalanche defaults for timestamps

* use non-zero timestamps in genesis configs

* fix test timestamps

* add timestamp to ethapi genesis

* fix blockchain test genesis timestamp

* fix test

* review fixes
2024-05-01 15:31:49 +03:00
e9c7e98e65 Coreth sync nits (#1161)
* use less blocks to gen

* avoid relying on rand.Seed for deterministic results (#535)

* disable blobpool (#536)

* add matrix and race to UTs (#530)

* add matrix and race to UTs

* remove unnecessary runners

* clean script

* lazy read bonus blocks

* increase timeout

* increase frequency

* apply fix fow windows

* increase timeout

* disable fail fast

* increase frequency and timeout

* use latest

* fix coma

* better log

* fix require

* Fix formatting

* fix eventually formats

* test out new wg

* Revert "test out new wg"

This reverts commit 5d4a0a8a17bf78751163e948a6a65dd241b057aa.

* check tx indexes after each block accept

* mark as flaky

* disable blobpool

* add IsSubscribed for testing

* remove subscribed when return

* use atomic bool

* attempt to fix flaky indexing test

* use matrix for UTs

* return if sub nil

* add beacon root checks

* fix test

* return if sub nil

---------

Co-authored-by: Darioush Jalali <[email protected]>
2024-04-29 18:28:40 +03: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
Stephen ButtolphandGitHub 2eca411c54 Use string literals rather than escaping strings (#1143) 2024-04-08 16:57:16 +00:00
177089c5ba move network upgrade code to file (#1136)
* move network upgrade code to file

* Update params/network_upgrades.go

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

* rename setevmupgrades

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-03-29 17:51:04 +03: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 9641a032ef Genesis chainconfig cleanup (#1123)
* add upgrade overrides

* print json strings

* fix tests

* nits

* fix lint
2024-03-19 14:31:20 +00:00
Ceyhun OnurandGitHub d5d638ab78 bump version to v0.6.3 (#1124) 2024-03-18 14:16:21 +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 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
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
Darioush JalaliandGitHub 7425988d52 Align with coreth (#1067) 2024-01-30 15:45:11 -08:00
07ff25b373 avago bump: Bloom filter metrics + Durango time (#1064)
* avago bump: Bloom filter metrics + Durango time

* Update plugin/evm/vm.go

Co-authored-by: Stephen Buttolph <[email protected]>
Signed-off-by: Darioush Jalali <[email protected]>

---------

Signed-off-by: Darioush Jalali <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
2024-01-26 21:25:11 +03:00
Darioush JalaliandGitHub b28858af37 Remove block builder test (#1065)
* Remove block builder test

* add attempt await
2024-01-26 16:11:27 +00:00
Darioush JalaliandGitHub 1b2e5b09f8 refactor: move AllowUnfinalizedQueries out of vm.Config (#1052)
* remove ethdb

* refactor: move AllowUnfinalizedQueries out of vm.Config
2024-01-23 23:32:33 +03:00
Darioush JalaliandGitHub 24a6a05cb8 remove ethdb (#1051) 2024-01-23 23:13:38 +03:00
Darioush JalaliandGitHub 1023e6443e Fix large block requests in state sync (#1057)
* Fix large block requests in state sync

* fixes

* fix
2024-01-23 18:22:29 +00: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
a394a37a79 move warp to precompiles package (#1034)
* move warp to precompiles package

* move warp params to warp package

* use log gas cost from contract package

---------

Co-authored-by: Darioush Jalali <[email protected]>
2024-01-04 22:08:03 +00:00
6308c49540 rename DUpgrade to Durango (#1029)
* rename DUpgrade to Durango

* Update core/evm.go

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

* Update x/warp/contract.go

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

* Update precompile/contracts/nativeminter/contract.go

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

* Update predicate/predicate_bytes.go

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

* Update precompile/precompileconfig/config.go

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

* Update x/warp/config.go

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

* Update x/warp/contract.go

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

* Update x/warp/contract.go

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

---------

Signed-off-by: Darioush Jalali <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-01-04 16:41:57 -05:00
zeekay 65408996d7 Update import path 2024-01-03 09:50:41 +01:00
zeekay e09f9ae0e1 Update executable to luxd 2024-01-03 09:49:05 +01:00
zeekay f8dd36a8be Update SubnetEVM 2024-01-03 09:44:09 +01:00
e1cfebce00 Add support for warp off chain messages (#1028)
Co-authored-by: Ceyhun Onur <[email protected]>
2023-12-27 12:49:33 -08:00
Dhruba BasuandGitHub 6f67474c21 Add TestSnowContext util (#1030) 2023-12-22 23:14:36 +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
aaronbuchwaldandGitHub 27796c9af9 Cleanup warp related code (#995)
* Cleanup warp related code

* Revert back to pass rules via pointer in handlePrecompileAccept

* goimports

* Remove unused var

* Update signature aggregator new comment

* Update README so it applies to both Coreth and Subnet-EVM
2023-11-28 11:32:21 -05:00
Ceyhun OnurandGitHub e9c603fd66 remove unnecessary locks (#998) 2023-11-16 22:23:09 +00: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
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
Darioush JalaliandGitHub 7749deb9ac warp: add details to accepted message log (#984) 2023-11-06 12:33:31 -08:00
Ceyhun OnurandGitHub af1c3c28aa remove extra service registration (#978) 2023-11-01 08:19:56 -07:00