Skip to content

Commit 6b62bd2

Browse files
ceyonurDarioush Jalali
andauthored
Sync subnet evm (#673)
* nit: peer/network.go: remove refs to cross chain in comments (#1333) * bump golang version * remove style changes --------- Co-authored-by: Darioush Jalali <[email protected]>
1 parent 7242ae2 commit 6b62bd2

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
token: ${{ secrets.AVALANCHE_PAT }}
3232
- uses: actions/setup-go@v5
3333
with:
34-
go-version: "~1.21.12"
34+
go-version: "~1.22.8"
3535
check-latest: true
3636
- name: change avalanchego dep
3737
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -73,7 +73,7 @@ jobs:
7373
token: ${{ secrets.AVALANCHE_PAT }}
7474
- uses: actions/setup-go@v5
7575
with:
76-
go-version: "~1.21.12"
76+
go-version: "~1.22.8"
7777
check-latest: true
7878
- name: change avalanchego dep
7979
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -112,7 +112,7 @@ jobs:
112112
token: ${{ secrets.AVALANCHE_PAT }}
113113
- uses: actions/setup-go@v5
114114
with:
115-
go-version: "~1.21.12"
115+
go-version: "~1.22.8"
116116
check-latest: true
117117
- name: Run e2e tests
118118
run: E2E_SERIAL=1 ./scripts/tests.e2e.sh
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "Sync Subnet EVM Branch"
1+
name: "Sync Subnet EVM Branch"
22
on:
33
workflow_dispatch:
4-
inputs:
5-
remoteBranch:
6-
description: "Subnet EVM Branch"
7-
required: true
8-
default: "master"
4+
inputs:
5+
remoteBranch:
6+
description: "Subnet EVM Branch"
7+
required: true
8+
default: "master"
99

1010
jobs:
1111
sync_branch:
@@ -16,5 +16,5 @@ jobs:
1616

1717
- uses: actions/setup-go@v5
1818
with:
19-
go-version: "~1.21.12"
20-
check-latest: true
19+
go-version: "~1.22.8"
20+
check-latest: true

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ============= Compilation Stage ================
2-
FROM golang:1.21.12-bullseye AS builder
2+
FROM golang:1.22.8-bullseye AS builder
33

44
ARG AVALANCHE_VERSION
55

@@ -17,7 +17,7 @@ WORKDIR $GOPATH/src/github.com/ava-labs/avalanchego
1717
RUN go mod download
1818
# Replace the coreth dependency
1919
RUN go mod edit -replace github.com/ava-labs/coreth=../coreth
20-
RUN go mod download && go mod tidy -compat=1.21
20+
RUN go mod download && go mod tidy -compat=1.22
2121

2222
# Build the AvalancheGo binary with local version of coreth.
2323
RUN ./scripts/build_avalanche.sh

accounts/abi/bind/bind_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,7 @@ func golangBindings(t *testing.T, overload bool) {
21792179
if out, err := replacer.CombinedOutput(); err != nil {
21802180
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
21812181
}
2182-
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.21")
2182+
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.22")
21832183
tidier.Dir = pkg
21842184
if out, err := tidier.CombinedOutput(); err != nil {
21852185
t.Fatalf("failed to tidy Go module file: %v\n%s", err, out)

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module github.com/ava-labs/coreth
22

3-
go 1.21.12
3+
go 1.22.8
44

55
require (
66
github.com/VictoriaMetrics/fastcache v1.12.1
7-
github.com/ava-labs/avalanchego v1.11.12-rc.2
7+
github.com/ava-labs/avalanchego v1.11.12-rc.3
88
github.com/cespare/cp v0.1.0
99
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233
1010
github.com/davecgh/go-spew v1.1.1
@@ -16,7 +16,7 @@ require (
1616
github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46
1717
github.com/google/uuid v1.6.0
1818
github.com/gorilla/rpc v1.2.0
19-
github.com/gorilla/websocket v1.4.2
19+
github.com/gorilla/websocket v1.5.0
2020
github.com/hashicorp/go-bexpr v0.1.10
2121
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
2222
github.com/holiman/billy v0.0.0-20240216141850-2abb0c79d3c4

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY
5454
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
5555
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
5656
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
57-
github.com/ava-labs/avalanchego v1.11.12-rc.2 h1:H1C0gsTOtwMD3qrouEqry0hfoBIC//9lEiDh/AvpaaY=
58-
github.com/ava-labs/avalanchego v1.11.12-rc.2/go.mod h1:yFx3V31Jy9NFa8GZlgGnwiVf8KGjeF2+Uc99l9Scd/8=
57+
github.com/ava-labs/avalanchego v1.11.12-rc.3 h1:cfJ9HCCunCZn922uIfnsw1UKt/c4pOl2/6w/Y7Fwn9Q=
58+
github.com/ava-labs/avalanchego v1.11.12-rc.3/go.mod h1:qSHmog3wMVjo/ruIAQo0ppXAilyni07NIu5K88RyhWE=
5959
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
6060
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
6161
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
@@ -299,8 +299,8 @@ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORR
299299
github.com/gorilla/rpc v1.2.0 h1:WvvdC2lNeT1SP32zrIce5l0ECBfbAlmrmSBsuc57wfk=
300300
github.com/gorilla/rpc v1.2.0/go.mod h1:V4h9r+4sF5HnzqbwIez0fKSpANP0zlYd3qR7p36jkTQ=
301301
github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
302-
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
303-
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
302+
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
303+
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
304304
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=
305305
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
306306
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms=

peer/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (n *network) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, reque
303303
}
304304

305305
// calculateTimeUntilDeadline calculates the time until deadline and drops it if we missed he deadline to response.
306-
// This function updates metrics for both app requests and cross chain requests.
306+
// This function updates metrics for app requests.
307307
// This is called by [AppRequest].
308308
func calculateTimeUntilDeadline(deadline time.Time, stats stats.RequestHandlerStats) (time.Time, error) {
309309
// calculate how much time is left until the deadline

peer/stats/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/ava-labs/coreth/metrics"
1010
)
1111

12-
// RequestHandlerStats provides the interface for metrics for both app requests and cross chain requests.
12+
// RequestHandlerStats provides the interface for metrics for app requests.
1313
type RequestHandlerStats interface {
1414
UpdateTimeUntilDeadline(duration time.Duration)
1515
IncDeadlineDroppedRequest()

scripts/versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
set -euo pipefail
77

88
# Don't export them as they're used in the context of other calls
9-
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.12-rc.2'}
9+
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.12-rc.3'}

0 commit comments

Comments
 (0)