265 Commits
Author SHA1 Message Date
Darioush JalaliandGitHub 9fe423f32b docker: add tag for commit hash (#1222) 2024-06-26 08:53:48 -07:00
Arran SchlosbergandGitHub e7543505ac chore: script for creating per-file diffs against arbitrary geth commit (#1212)
* chore: script for creating per-file diffs against arbitrary geth commit

* chore: add new-line at end

* fix: linter recommendations
2024-06-18 11:24:09 +01: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
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
Ceyhun OnurandGitHub 69e5670ce0 bump versions (#1153)
* bump versions

* update avago versions

* fix tests
2024-05-01 14:39:26 +00: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
Ceyhun OnurandGitHub 0f6170ffac Bump go version (#1148)
* remove min go lang version from script

* bump golang version to 1.21.9
2024-04-15 17:19:42 +03:00
Ceyhun OnurandGitHub e31a29d5f2 Fix docker push test (#1138)
* refactor docker yml and scripts

* enable pr for test

* fix path

* fix path

* rename img id

* try simpler name

* use -a

* test tag

* remove test steps

* remove avalanchego from image id
2024-04-08 19:43:25 +03:00
marunandGitHub bb3ed07ba9 ci: Enable collection of logs and metrics (#1122)
* ci: Enable collection of logs and metrics

* fixup: Cleanup log configuration for load and warp testing
2024-03-27 07:27:12 -07: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 c105451b9d move docker build to separate ci (#1128)
* move docker build to separate ci

* rename CI workflow for simplicity

* workflow cleanup
2024-03-19 16:16:19 +00: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
0a8242b95e e2e: Switch to the tmpnet fixture (#1027)
* e2e: Switch warp test to use tmpnet fixture

* e2e: Switch load test to use the tmpnet fixture

* Add readme describing use of existing network

* e2e: Remove network manager and dependency on ANR

* fixup: Switch from VMName to VMID with tmpnet.Chain

* fixup: Respond to review comments

* fixup: Use 5 nodes for load testing

* fixup: Fix shellcheck errors

* cleanup artifact dirs

* fixup: Update to reflect tmpnet configuration changes

* fixup: go mod tidy

* fixup: Use the default evm logging level for load testing

* fixup: Lower the avalanchego logging levels for load testing

* fixup: respond to review comments

* fixup: Respond to review comments #2

* fixup: Disable unnecessary stdout logging

---------

Co-authored-by: Ceyhun Onur <[email protected]>
2024-02-29 10:24:19 +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
62d0d8b4b6 Update minimum golang version to v1.21.7 (#1088)
* Update minimum golang version to v1.21.7

* update versions.sh

---------

Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
2024-02-09 11:35:02 -08:00
Darioush JalaliandGitHub 7c03d8a7c2 take slice of cmd/utils from upstream (#1082)
* take slice of cmd/utils from upstream

* add header
2024-02-09 08:59:10 +00: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
marunandGitHub b480fae01f ci: Add shellcheck step to lint job (#1061)
* `ci`: Add shellcheck step to lint job

* fixup: Exclude upstream files
2024-01-31 13:31:27 +00: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 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
Ceyhun OnurandGitHub e4957fb432 Split load test (#1041)
* 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
2024-01-08 08:23:21 -08:00
Ceyhun OnurandGitHub 49a3807235 bump min go version (#1032)
* bump min go version

* downgrade golangci
2024-01-04 13:24:07 -08: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
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
c7f45a6b55 refactor warp e2e tests into ginkgo table entries + add warp load test (#1010)
* cmd/simulator: refactor simulator to support warp load test

* Fix metrics server blocking incorrectly

* Apply suggestions from code review

Signed-off-by: aaronbuchwald <[email protected]>

* refactor warp e2e tests into ginkgo table entries + add warp load test

* update avago dep

* Update AppGossip to match updated avago bump

* Update ANR dep to fix panic

* Address comments

* Use errgroup to run send and deliver load concurrently

* Revert "Use errgroup to run send and deliver load concurrently"

This reverts commit 51b515ed50b9db3edeef193aabb441ddfdf89c3e.

* Add TODO

* Update tests/warp/warp_test.go

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

* Bump to ago v1.10.17-rc.14

---------

Signed-off-by: aaronbuchwald <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-11-30 12:58:58 -05:00
512da7af4f remove unnecessary avalanchego version from script (#989)
* remove unnecessary avalanchego version from script

* rename avalanchego version to avalanche version

---------

Signed-off-by: Darioush Jalali <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-11-22 19:14:08 +03: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
Ceyhun OnurandGitHub a08fda51b3 use cgo in mockgen (#974)
* use cgo in mockgen

* use repo path

* move constants
2023-10-27 10:34:06 -04: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
AnushaandGitHub e60565d5d8 Improve TPS on E2E Load Test (#947)
* init

* make fee changes

* change simulator settings

* Correct numbers

* correct header

* correct
2023-10-18 14:56:06 +00:00
Ceyhun OnurandGitHub 7d9d91ab56 bump avalanchego to v1.10.12 (#952) 2023-10-11 13:56:18 -07:00
Ceyhun OnurandGitHub 95817a816e bump versions (#880)
* bump versions

* bump anr
2023-09-20 20:47:36 +03:00
318a6fe09d P2p sdk pull gossip (#861)
* Add SDK Router message handling (#316)

Co-authored-by: Stephen Buttolph <[email protected]>

* Fix hanging requests after Shutdown (#326)

* fix requests hanging after shutdown

* fix build

---------

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

* Update to 1.10.10-rc.2 (#328)

* update to avalanchego 1.10.10-rc.2

* nits

* nit

* Add P2P SDK Pull Gossip (#318)

* add batchsize

* sync changes

* Drop outbound gossip for non vdrs (#862)

* Drop outbound gossip requests for non-validators (#334)

* drop outbound gossip requests for non validators

* nit

* nit

* sync changes

---------

Co-authored-by: Joshua Kim <[email protected]>

---------

Co-authored-by: Joshua Kim <[email protected]>
2023-09-19 15:09:47 -04:00
Ceyhun OnurandGitHub 6e22df3bc5 Add SDK Router message handling (#316) (#858)
* Add SDK Router message handling (#316)

Co-authored-by: Stephen Buttolph <[email protected]>

* revert avago version bump

* Fix hanging requests after Shutdown (#326) (#859)

* Fix hanging requests after Shutdown (#326)

* fix requests hanging after shutdown

* fix build

---------

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

* Bump avago rc (#860)

* Update to 1.10.10-rc.2 (#328)

* update to avalanchego 1.10.10-rc.2

* nits

* nit

* add batchsize

* increase timeout dynamically

---------

Co-authored-by: Joshua Kim <[email protected]>

---------

---------
2023-09-18 21:24:58 -04:00
aaronbuchwaldandGitHub 523dcc272e Warp stapling block context (#823)
* Add GetPredicateResults to BlockContext

* Serve predicate results from blockContext

* Allow extra data to extend past DynamicFeeWindow post DUpgrade

* Get vm warp unit tests working

* Bump ANR to intermediate version to fix incompatibility with AvalancheGo

* Add kc to EthKeyChain

* Bump avalanchego dep in scripts for CI

* Add block hash payload support

* Use gomocks for precompileconfig and predicater and re-write CheckPredicates with gomocks

* Use gomock for mock accessible state and block context

* Fix existing warp contract tests with mock block context

* Remove unused mockPredicater impl

* x/warp: add contract execution unit tests

* Update NewEVMBlockContext

* Add AppendExtra to syncervm to fix tests

* x/warp: add unit test for multiple predicate results

* core: add unit test for CheckPredicates insufficient gas

* Update receive warp message test to trace block and assert the expected result

* Fix lint

* Update warp solidity contracts

* Fix block context mocks for bench

* Update precompile/precompileconfig/config.go

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

* Cleanup

* precompile/results: Add predicate results tests + comments

* nits

* precompile/results: omit tx predicate results if empty

* core: add invariant comment to predicate check

* Address PR comments

* Fix unpackWarpMessage and add unit tests

* Rename OriginChainID -> SourceChainID to match ago warp message type

* nits

* x/warp: set public key in warp predicate unit tests

* Update payload format

* Clarify IWarpMessenger verified message return types

* core/state: improve statedb warp specific comments

* Update input param type to uint32 to avoid potential overflow on conversion

* Update GetPredicateStorageSlots arg type to uint32

* warp/payload: add README for payload serialization (#835)

* Fix merge
2023-09-12 13:10:26 -04:00
Ceyhun OnurandGitHub be1bf355e8 add mockgen (#838) 2023-09-12 10:48:30 -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
Ceyhun OnurandGitHub 123ef41742 bump avalanchego version (#789) 2023-08-14 18:17:01 -04:00
7e958c8b1d Bump min go version (#780)
Co-authored-by: Darioush Jalali <[email protected]>
2023-08-08 09:32:04 -07: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 246815e95d Add warp contract implementation (#718)
* Add warp contract implementation

* Cleanup predicate test

* Fix new function signature

* Replace invalid fuzz test with unit test

* Add chain config to enable warp API for warp e2e test

* remove unused var

* Add experimental warning and move warp precompile to x/ package

* fix warning label

* Fix warning

* vm test nits

* Improve sendWarpMessenger sol comment

* more vm warp test nits

* Move warp params into params package

* More vm warp test nits

* Address more PR comments

* Remove triggerTx2

* Add check for expected topics from sendWarpMessage log

* Fix config test

* Fix incorrect replace

* remove unnecessary echo

* Address comments

* Address comments

* Address PR comments

* Improve comments

* Convert [32]byte type to common.Hash

* Add base cost for getVerifiedWarpMessage

* fix require equal type check

* Fix updated awm message format

* Update warp message format

* Move IWarpMessenger.sol to interfaces/

* Add newline to warp genesis

* uncomment assertion

* Fix broken links in README
2023-07-31 10:56:25 -04:00