Skip to content

Commit a6b902b

Browse files
author
Darioush Jalali
committed
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v1.13.14-sq
2 parents ead21bd + 32c8cdf commit a6b902b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1018
-1022
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Antithesis Images
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
9+
env:
10+
REGISTRY: us-central1-docker.pkg.dev
11+
REPOSITORY: molten-verve-216720/avalanche-repository
12+
13+
jobs:
14+
antithesis:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v4
20+
21+
- name: Login to GAR
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ${{ env.REGISTRY }}
25+
username: _json_key
26+
password: ${{ secrets.ANTITHESIS_GAR_JSON_KEY }}
27+
28+
- name: Build and publish images
29+
run: bash -x ./scripts/build_antithesis_images.sh
30+
env:
31+
IMAGE_PREFIX: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}
32+
IMAGE_TAG: latest

.github/workflows/tests.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
shell: bash
141141
run: ./scripts/build.sh
142142
- name: Run Warp E2E Tests
143-
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@v1-actions
143+
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@v1.11.11-monitoring-url
144144
with:
145145
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego ./scripts/run_ginkgo_warp.sh
146146
prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }}
@@ -172,7 +172,7 @@ jobs:
172172
shell: bash
173173
run: ./scripts/build.sh
174174
- name: Run E2E Load Tests
175-
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@v1-actions
175+
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@v1.11.11-monitoring-url
176176
with:
177177
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego ./scripts/run_ginkgo_load.sh
178178
prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }}
@@ -197,3 +197,24 @@ jobs:
197197
run: scripts/mock.gen.sh
198198
- shell: bash
199199
run: .github/workflows/check-clean-branch.sh
200+
test_build_antithesis_images:
201+
name: Build Antithesis images
202+
runs-on: ubuntu-latest
203+
steps:
204+
- uses: actions/checkout@v4
205+
- uses: actions/setup-go@v5
206+
with:
207+
go-version: ${{ env.min_go_version }}
208+
check-latest: true
209+
- name: Install AvalancheGo Release
210+
shell: bash
211+
run: BASEDIR=/tmp/e2e-test AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego ./scripts/install_avalanchego_release.sh
212+
- name: Build Subnet-EVM Plugin Binary
213+
shell: bash
214+
run: ./scripts/build.sh
215+
- name: Check that the antithesis workload is sane
216+
shell: bash
217+
run: go run ./tests/antithesis --avalanchego-path=/tmp/e2e-test/avalanchego/avalanchego --duration=60s
218+
- name: Check antithesis image build
219+
shell: bash
220+
run: bash -x scripts/tests.build_antithesis_images.sh
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Trigger Antithesis
2+
3+
on:
4+
schedule:
5+
# When adjusting the schedule and duration of execution, make sure
6+
# to check the schedule of antithesis jobs scheduled by other
7+
# repos (avalanchego and hypersdk). Ideally the schedules for
8+
# different test setups should not overlap to avoid unintended
9+
# resource contention.
10+
- cron: '0 14 * * *' # Every day at 2PM UTC
11+
workflow_dispatch:
12+
inputs:
13+
duration:
14+
description: 'The duration (in hours) to run the test for'
15+
default: '0.5'
16+
required: true
17+
type: string
18+
recipients:
19+
description: 'Comma-seperated email addresses to send the test report to'
20+
required: true
21+
type: string
22+
image_tag:
23+
description: 'The image tag to target'
24+
default: latest
25+
required: true
26+
type: string
27+
28+
jobs:
29+
antithesis:
30+
name: Run Antithesis
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: antithesishq/[email protected]
34+
with:
35+
notebook_name: avalanche
36+
tenant: avalanche
37+
username: ${{ secrets.ANTITHESIS_USERNAME }}
38+
password: ${{ secrets.ANTITHESIS_PASSWORD }}
39+
github_token: ${{ secrets.ANTITHESIS_GH_PAT }}
40+
config_image: antithesis-subnet-evm-config:${{ github.event.inputs.image_tag || 'latest' }}
41+
images: antithesis-subnet-evm-workload:${{ github.event.inputs.image_tag || 'latest' }};antithesis-subnet-evm-node:${{ github.event.inputs.image_tag || 'latest' }}
42+
email_recipients: ${{ github.event.inputs.recipients || secrets.ANTITHESIS_RECIPIENTS }}
43+
# Duration is in hours
44+
additional_parameters: |-
45+
custom.duration=${{ github.event.inputs.duration || '7.5' }}
46+
custom.workload=subnet-evm

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ cmd/simulator/simulator
5454
dist/
5555

5656
# Outputs of `scripts/diff_against.sh`
57-
diffs/
57+
diffs/
58+
59+
# clone used for antithesis image builds
60+
avalanchego/

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# syntax=docker/dockerfile:experimental
22

33
# ============= Setting up base Stage ================
4-
# Set required AVALANCHE_VERSION parameter in build image script
5-
ARG AVALANCHE_VERSION
4+
# AVALANCHEGO_NODE_IMAGE needs to identify an existing node image and should include the tag
5+
ARG AVALANCHEGO_NODE_IMAGE
66

77
# ============= Compilation Stage ================
88
FROM golang:1.21.12-bullseye AS builder
@@ -29,8 +29,8 @@ ARG CURRENT_BRANCH
2929
RUN export SUBNET_EVM_COMMIT=$SUBNET_EVM_COMMIT && export CURRENT_BRANCH=$CURRENT_BRANCH && ./scripts/build.sh build/subnet-evm
3030

3131
# ============= Cleanup Stage ================
32-
FROM avaplatform/avalanchego:$AVALANCHE_VERSION AS builtImage
32+
FROM $AVALANCHEGO_NODE_IMAGE AS builtImage
3333

3434
# Copy the evm binary into the correct location in the container
35-
ARG VM_ID
35+
ARG VM_ID=srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy
3636
COPY --from=builder /build/build/subnet-evm /avalanchego/build/plugins/$VM_ID

eth/filters/filter_system.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,15 @@ func (es *EventSystem) handlePendingLogs(filters filterIndex, ev []*types.Log) {
520520
}
521521
}
522522

523-
func (es *EventSystem) handleTxsEvent(filters filterIndex, ev core.NewTxsEvent, accepted bool) {
523+
func (es *EventSystem) handleTxsEvent(filters filterIndex, ev core.NewTxsEvent) {
524524
for _, f := range filters[PendingTransactionsSubscription] {
525525
f.txs <- ev.Txs
526526
}
527-
if accepted {
528-
for _, f := range filters[AcceptedTransactionsSubscription] {
529-
f.txs <- ev.Txs
530-
}
527+
}
528+
529+
func (es *EventSystem) handleTxsAcceptedEvent(filters filterIndex, ev core.NewTxsEvent) {
530+
for _, f := range filters[AcceptedTransactionsSubscription] {
531+
f.txs <- ev.Txs
531532
}
532533
}
533534

@@ -565,7 +566,7 @@ func (es *EventSystem) eventLoop() {
565566
for {
566567
select {
567568
case ev := <-es.txsCh:
568-
es.handleTxsEvent(index, ev, false)
569+
es.handleTxsEvent(index, ev)
569570
case ev := <-es.logsCh:
570571
es.handleLogs(index, ev)
571572
case ev := <-es.logsAcceptedCh:
@@ -579,7 +580,7 @@ func (es *EventSystem) eventLoop() {
579580
case ev := <-es.chainAcceptedCh:
580581
es.handleChainAcceptedEvent(index, ev)
581582
case ev := <-es.txsAcceptedCh:
582-
es.handleTxsEvent(index, ev, true)
583+
es.handleTxsAcceptedEvent(index, ev)
583584

584585
case f := <-es.install:
585586
if f.typ == MinedAndPendingLogsSubscription {

eth/tracers/api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func TestTraceCall(t *testing.T) {
226226
// Initialize test accounts
227227
accounts := newAccounts(3)
228228
genesis := &core.Genesis{
229-
Config: params.TestSubnetEVMChainConfig, // TODO: go-ethereum has not enabled Shanghai yet, so we use SubnetEVM here so tests pass.
229+
Config: params.TestChainConfig,
230230
Alloc: types.GenesisAlloc{
231231
accounts[0].addr: {Balance: big.NewInt(params.Ether)},
232232
accounts[1].addr: {Balance: big.NewInt(params.Ether)},
@@ -590,7 +590,7 @@ func TestTracingWithOverrides(t *testing.T) {
590590
accounts := newAccounts(3)
591591
storageAccount := common.Address{0x13, 37}
592592
genesis := &core.Genesis{
593-
Config: params.TestSubnetEVMChainConfig, // TODO: go-ethereum has not enabled Shanghai yet, so we use SubnetEVM here so tests pass.
593+
Config: params.TestChainConfig,
594594
Alloc: types.GenesisAlloc{
595595
accounts[0].addr: {Balance: big.NewInt(params.Ether)},
596596
accounts[1].addr: {Balance: big.NewInt(params.Ether)},

go.mod

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ go 1.21.12
44

55
require (
66
github.com/VictoriaMetrics/fastcache v1.12.1
7-
github.com/ava-labs/avalanchego v1.11.11-0.20240805202431-479145a6602d
7+
github.com/antithesishq/antithesis-sdk-go v0.3.8
8+
github.com/ava-labs/avalanchego v1.11.11-0.20240821175119-35c66e33f0dc
89
github.com/cespare/cp v0.1.0
910
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233
1011
github.com/davecgh/go-spew v1.1.1
@@ -55,7 +56,7 @@ require (
5556
require (
5657
github.com/DataDog/zstd v1.5.2 // indirect
5758
github.com/NYTimes/gziphandler v1.1.1 // indirect
58-
github.com/ava-labs/coreth v0.13.8-0.20240802110637-b3e5088d062d // indirect
59+
github.com/ava-labs/coreth v0.13.8-fixed-genesis-upgrade.0.20240813194342-7635a96aa180 // indirect
5960
github.com/beorn7/perks v1.0.1 // indirect
6061
github.com/bits-and-blooms/bitset v1.10.0 // indirect
6162
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
@@ -67,12 +68,16 @@ require (
6768
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593 // indirect
6869
github.com/cockroachdb/redact v1.1.3 // indirect
6970
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
71+
github.com/compose-spec/compose-go v1.20.2 // indirect
7072
github.com/consensys/bavard v0.1.13 // indirect
7173
github.com/consensys/gnark-crypto v0.12.1 // indirect
7274
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
7375
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
7476
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
77+
github.com/distribution/reference v0.5.0 // indirect
7578
github.com/dlclark/regexp2 v1.7.0 // indirect
79+
github.com/docker/go-connections v0.4.0 // indirect
80+
github.com/docker/go-units v0.5.0 // indirect
7681
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
7782
github.com/getsentry/sentry-go v0.18.0 // indirect
7883
github.com/go-logr/logr v1.4.1 // indirect
@@ -97,12 +102,14 @@ require (
97102
github.com/kr/text v0.2.0 // indirect
98103
github.com/magiconair/properties v1.8.6 // indirect
99104
github.com/mattn/go-runewidth v0.0.13 // indirect
105+
github.com/mattn/go-shellwords v1.0.12 // indirect
100106
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
101107
github.com/mitchellh/mapstructure v1.5.0 // indirect
102108
github.com/mitchellh/pointerstructure v1.2.0 // indirect
103109
github.com/mmcloughlin/addchain v0.4.0 // indirect
104110
github.com/mr-tron/base58 v1.2.0 // indirect
105111
github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d // indirect
112+
github.com/opencontainers/go-digest v1.0.0 // indirect
106113
github.com/pelletier/go-toml v1.9.5 // indirect
107114
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
108115
github.com/pires/go-proxyproto v0.6.2 // indirect
@@ -114,6 +121,7 @@ require (
114121
github.com/rogpeppe/go-internal v1.10.0 // indirect
115122
github.com/rs/cors v1.7.0 // indirect
116123
github.com/russross/blackfriday/v2 v2.1.0 // indirect
124+
github.com/sirupsen/logrus v1.9.0 // indirect
117125
github.com/spf13/afero v1.8.2 // indirect
118126
github.com/spf13/jwalterweatherman v1.1.0 // indirect
119127
github.com/subosito/gotenv v1.3.0 // indirect

go.sum

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBA
5555
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
5656
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
5757
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
58+
github.com/antithesishq/antithesis-sdk-go v0.3.8 h1:OvGoHxIcOXFJLyn9IJQ5DzByZ3YVAWNBc394ObzDRb8=
59+
github.com/antithesishq/antithesis-sdk-go v0.3.8/go.mod h1:IUpT2DPAKh6i/YhSbt6Gl3v2yvUZjmKncl7U91fup7E=
5860
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
59-
github.com/ava-labs/avalanchego v1.11.11-0.20240805202431-479145a6602d h1:T8sDX5uo7zSEjwDtVccS1WtzuC3pRXs9NXYbmGGagJ4=
60-
github.com/ava-labs/avalanchego v1.11.11-0.20240805202431-479145a6602d/go.mod h1:9e0UPXJboybmgFjeTj+SFbK4ugbrdG4t68VdiUW5oQ8=
61-
github.com/ava-labs/coreth v0.13.8-0.20240802110637-b3e5088d062d h1:klPTcKVvqfA2KSKaRvQAO56Pd4XAqGhwgMTQ6/W+w7w=
62-
github.com/ava-labs/coreth v0.13.8-0.20240802110637-b3e5088d062d/go.mod h1:tXDujonxXFOF6oK5HS2EmgtSXJK3Gy6RpZxb5WzR9rM=
61+
github.com/ava-labs/avalanchego v1.11.11-0.20240821175119-35c66e33f0dc h1:cUz1N+LJIeQAR0Z6zTBiuZ7s8GqIE5QQbRWs423VFRA=
62+
github.com/ava-labs/avalanchego v1.11.11-0.20240821175119-35c66e33f0dc/go.mod h1:UkyrRDXK2E15Lq2abyae2Pt+JsWvgsg1pe0/AtoMyAM=
63+
github.com/ava-labs/coreth v0.13.8-fixed-genesis-upgrade.0.20240813194342-7635a96aa180 h1:6aIHp7wbyGVYdhHVQUbG7BEcbCMEQ5SYopPPJyipyvk=
64+
github.com/ava-labs/coreth v0.13.8-fixed-genesis-upgrade.0.20240813194342-7635a96aa180/go.mod h1:/wNBVq7J7wlC2Kbov7kk6LV5xZvau7VF9zwTVOeyAjY=
6365
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
6466
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
6567
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
@@ -121,6 +123,8 @@ github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ
121123
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo=
122124
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ=
123125
github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM=
126+
github.com/compose-spec/compose-go v1.20.2 h1:u/yfZHn4EaHGdidrZycWpxXgFffjYULlTbRfJ51ykjQ=
127+
github.com/compose-spec/compose-go v1.20.2/go.mod h1:+MdqXV4RA7wdFsahh/Kb8U0pAJqkg7mr4PM9tFKU8RM=
124128
github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ=
125129
github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI=
126130
github.com/consensys/gnark-crypto v0.12.1 h1:lHH39WuuFgVHONRl3J0LRBtuYdQTumFSDtJF7HpyG8M=
@@ -150,9 +154,15 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2U
150154
github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218=
151155
github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
152156
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
157+
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
158+
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
153159
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
154160
github.com/dlclark/regexp2 v1.7.0 h1:7lJfhqlPssTb1WQx4yvTHN0uElPEv52sbaECrAQxjAo=
155161
github.com/dlclark/regexp2 v1.7.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
162+
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
163+
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
164+
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
165+
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
156166
github.com/dop251/goja v0.0.0-20211022113120-dc8c55024d06/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk=
157167
github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127 h1:qwcF+vdFrvPSEUDSX5RVoRccG8a5DhOdWdQ4zN62zzo=
158168
github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127/go.mod h1:QMWlm50DNe14hD7t24KEqZuUdC9sOTy8W6XbCU1mlw4=
@@ -411,6 +421,8 @@ github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/
411421
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
412422
github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
413423
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
424+
github.com/mattn/go-shellwords v1.0.12 h1:M2zGm7EW6UQJvDeQxo4T51eKPurbeFbe8WtebGE2xrk=
425+
github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y=
414426
github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw=
415427
github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo=
416428
github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
@@ -463,6 +475,8 @@ github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAl
463475
github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
464476
github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg=
465477
github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
478+
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
479+
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
466480
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
467481
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
468482
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
@@ -509,6 +523,8 @@ github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAm
509523
github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI=
510524
github.com/shirou/gopsutil v3.21.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
511525
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
526+
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
527+
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
512528
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
513529
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
514530
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
@@ -798,6 +814,7 @@ golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBc
798814
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
799815
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
800816
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
817+
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
801818
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
802819
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
803820
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@@ -1025,6 +1042,8 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
10251042
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
10261043
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
10271044
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
1045+
gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
1046+
gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g=
10281047
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
10291048
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
10301049
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=

internal/ethapi/api_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ func TestRPCGetBlockOrHeader(t *testing.T) {
15481548
acc1Addr = crypto.PubkeyToAddress(acc1Key.PublicKey)
15491549
acc2Addr = crypto.PubkeyToAddress(acc2Key.PublicKey)
15501550
genesis = &core.Genesis{
1551-
Config: params.TestSubnetEVMChainConfig,
1551+
Config: params.TestChainConfig,
15521552
Alloc: types.GenesisAlloc{
15531553
acc1Addr: {Balance: big.NewInt(params.Ether)},
15541554
acc2Addr: {Balance: big.NewInt(params.Ether)},
@@ -1873,7 +1873,6 @@ func setupReceiptBackend(t *testing.T, genBlocks int) (*testBackend, []common.Ha
18731873
b.AddTx(tx)
18741874
txHashes[i] = tx.Hash()
18751875
}
1876-
// b.SetPoS()
18771876
})
18781877
return backend, txHashes
18791878
}

0 commit comments

Comments
 (0)