Skip to content

Commit 46f93b1

Browse files
authored
Merge pull request maticnetwork#1202 from maticnetwork/v1.3.0-beta-candidate
merge "V1.3.0 beta candidate" into master
2 parents 4395894 + 840ca99 commit 46f93b1

File tree

615 files changed

+22768
-20088
lines changed

Some content is hidden

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

615 files changed

+22768
-20088
lines changed

.github/ISSUE_TEMPLATE/bug.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Heimdall client version: [e.g. v0.2.10] <!--Can be found by running the command
2020

2121
OS & Version: Windows / Linux / OSX
2222

23-
Environment: Polygon Mainnet / Polygon Mumbai / Devnet
23+
Environment: Polygon Mainnet / Polygon Mumbai / Polygon Amoy / Devnet
2424

2525
Type of node: Validator / Sentry / Archive
2626

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In case this PR includes changes that must be applied only to a subset of nodes,
3939
- [ ] I have added tests to CI
4040
- [ ] I have tested this code manually on local environment
4141
- [ ] I have tested this code manually on remote devnet using express-cli
42-
- [ ] I have tested this code manually on mumbai
42+
- [ ] I have tested this code manually on mumbai/amoy
4343
- [ ] I have created new e2e tests into express-cli
4444

4545
### Manual tests

.github/workflows/ci.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
git submodule update --init --recursive --force
2828
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
2929
30-
- uses: actions/setup-go@v3
30+
- uses: actions/setup-go@v5
3131
with:
32-
go-version: 1.20.x
32+
go-version: 1.22.x
3333

3434
- name: Install dependencies on Linux
3535
if: runner.os == 'Linux'
@@ -59,9 +59,9 @@ jobs:
5959
git submodule update --init --recursive --force
6060
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
6161
62-
- uses: actions/setup-go@v3
62+
- uses: actions/setup-go@v5
6363
with:
64-
go-version: 1.20.x
64+
go-version: 1.22.x
6565

6666
- name: Install dependencies on Linux
6767
if: runner.os == 'Linux'
@@ -87,9 +87,9 @@ jobs:
8787
git submodule update --init --recursive --force
8888
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
8989
90-
- uses: actions/setup-go@v3
90+
- uses: actions/setup-go@v5
9191
with:
92-
go-version: 1.20.x
92+
go-version: 1.22.x
9393

9494
- name: Install dependencies on Linux
9595
if: runner.os == 'Linux'
@@ -138,9 +138,9 @@ jobs:
138138
git submodule update --init --recursive --force
139139
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
140140
141-
- uses: actions/setup-go@v3
141+
- uses: actions/setup-go@v5
142142
with:
143-
go-version: 1.20.x
143+
go-version: 1.22.x
144144

145145
- name: Install dependencies on Linux
146146
if: runner.os == 'Linux'
@@ -194,9 +194,9 @@ jobs:
194194
git submodule update --init --recursive --force
195195
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
196196
197-
- uses: actions/setup-go@v3
197+
- uses: actions/setup-go@v5
198198
with:
199-
go-version: 1.20.x
199+
go-version: 1.22.x
200200

201201
- name: Checkout matic-cli
202202
uses: actions/checkout@v3
@@ -248,6 +248,8 @@ jobs:
248248
249249
- name: Run smoke tests
250250
run: |
251+
echo "Funding ganache accounts..."
252+
timeout 10m bash bor/integration-tests/fund_ganache_accounts.sh
251253
echo "Deposit 100 matic for each account to bor network"
252254
cd matic-cli/devnet/code/contracts
253255
npm run truffle exec scripts/deposit.js -- --network development $(jq -r .root.tokens.MaticToken contractAddresses.json) 100000000000000000000

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v3
2929

3030
- name: Install Go
31-
uses: actions/setup-go@v4
31+
uses: actions/setup-go@v5
3232
with:
3333
go-version-file: go.mod
3434

.github/workflows/govuln.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
env:
1414
DEBUG: "true"
1515
with:
16-
go-version: 1.21
16+
go-version: 1.22
1717
package: ./...
1818
github-token: ${{ secrets.GITHUB_TOKEN }}
1919
fail-on-vuln: true

.github/workflows/packager.yml

+417-1
Large diffs are not rendered by default.

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@master
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.22.x
2525

2626
- name: Prepare
2727
id: prepare

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ dist
5757
.dccache
5858

5959
*.csv
60+
logs/
61+
62+
tests/spec-tests/

.goreleaser.yml

+5
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ nfpms:
9696
- src: builder/files/genesis-testnet-v4.json
9797
dst: /etc/bor/genesis-testnet-v4.json
9898
type: config
99+
- src: builder/files/genesis-amoy.json
100+
dst: /etc/bor/genesis-amoy.json
101+
type: config
99102
- src: builder/files/config.toml
100103
dst: /var/lib/bor/config.toml
101104
type: config
@@ -119,6 +122,7 @@ dockers:
119122
extra_files:
120123
- builder/files/genesis-mainnet-v1.json
121124
- builder/files/genesis-testnet-v4.json
125+
- builder/files/genesis-amoy.json
122126

123127
- image_templates:
124128
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64
@@ -132,6 +136,7 @@ dockers:
132136
extra_files:
133137
- builder/files/genesis-mainnet-v1.json
134138
- builder/files/genesis-testnet-v4.json
139+
- builder/files/genesis-amoy.json
135140

136141
docker_manifests:
137142
- name_template: 0xpolygon/{{ .ProjectName }}:{{ .Version }}

.travis.yml

+25-25
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- stage: lint
1414
os: linux
1515
dist: bionic
16-
go: 1.20.x
16+
go: 1.22.x
1717
env:
1818
- lint
1919
git:
@@ -28,7 +28,7 @@ jobs:
2828
os: linux
2929
arch: amd64
3030
dist: bionic
31-
go: 1.20.x
31+
go: 1.22.x
3232
env:
3333
- docker
3434
services:
@@ -45,7 +45,7 @@ jobs:
4545
os: linux
4646
arch: arm64
4747
dist: bionic
48-
go: 1.20.x
48+
go: 1.22.x
4949
env:
5050
- docker
5151
services:
@@ -62,7 +62,7 @@ jobs:
6262
if: type = push
6363
os: linux
6464
dist: bionic
65-
go: 1.20.x
65+
go: 1.22.x
6666
env:
6767
- ubuntu-ppa
6868
- GO111MODULE=on
@@ -87,10 +87,9 @@ jobs:
8787
os: linux
8888
dist: bionic
8989
sudo: required
90-
go: 1.20.x
90+
go: 1.22.x
9191
env:
9292
- azure-linux
93-
- GO111MODULE=on
9493
git:
9594
submodules: false # avoid cloning ethereum/tests
9695
addons:
@@ -145,7 +144,7 @@ jobs:
145144
- sdkmanager "platform-tools" "platforms;android-15" "platforms;android-19" "platforms;android-24" "ndk-bundle"
146145

147146
# Install Go to allow building with
148-
- curl https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | tar -xz
147+
- curl https://dl.google.com/go/go1.21.4.linux-amd64.tar.gz | tar -xz
149148
- export PATH=`pwd`/go/bin:$PATH
150149
- export GOROOT=`pwd`/go
151150
- export GOPATH=$HOME/go
@@ -159,47 +158,51 @@ jobs:
159158
- stage: build
160159
if: type = push
161160
os: osx
162-
go: 1.20.x
161+
osx_image: xcode14.2
162+
go: 1.22.x
163163
env:
164164
- azure-osx
165-
- GO111MODULE=on
166165
git:
167166
submodules: false # avoid cloning ethereum/tests
168167
script:
169168
- go run build/ci.go install -dlgo
170169
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
170+
- go run build/ci.go install -dlgo -arch arm64
171+
- go run build/ci.go archive -arch arm64 -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
171172

172173
# These builders run the tests
173174
- stage: build
174175
os: linux
175176
arch: amd64
176177
dist: bionic
177-
go: 1.20.x
178-
env:
179-
- GO111MODULE=on
178+
go: 1.22.x
180179
script:
181-
- go run build/ci.go test $TEST_PACKAGES
180+
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES
182181

183182
- stage: build
184183
if: type = pull_request
185184
os: linux
186185
arch: arm64
187186
dist: bionic
188-
go: 1.20.x
189-
env:
190-
- GO111MODULE=on
187+
go: 1.22.x
191188
script:
192-
- go run build/ci.go test $TEST_PACKAGES
189+
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES
190+
191+
- stage: build
192+
os: linux
193+
dist: bionic
194+
go: 1.22.x
195+
script:
196+
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES
193197

194198
# This builder does the Ubuntu PPA nightly uploads
195199
- stage: build
196200
if: type = cron || (type = push && tag ~= /^v[0-9]/)
197201
os: linux
198202
dist: bionic
199-
go: 1.18.x
203+
go: 1.22.x
200204
env:
201205
- ubuntu-ppa
202-
- GO111MODULE=on
203206
git:
204207
submodules: false # avoid cloning ethereum/tests
205208
addons:
@@ -220,10 +223,9 @@ jobs:
220223
if: type = cron
221224
os: linux
222225
dist: bionic
223-
go: 1.20.x
226+
go: 1.22.x
224227
env:
225228
- azure-purge
226-
- GO111MODULE=on
227229
git:
228230
submodules: false # avoid cloning ethereum/tests
229231
script:
@@ -234,9 +236,7 @@ jobs:
234236
if: type = cron
235237
os: linux
236238
dist: bionic
237-
go: 1.20.x
238-
env:
239-
- GO111MODULE=on
239+
go: 1.22.x
240240
script:
241-
- go run build/ci.go test -race $TEST_PACKAGES
241+
- travis_wait 30 go run build/ci.go test -race $TEST_PACKAGES
242242

Dockerfile.alltools

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build Geth in a stock Go builder container
2-
FROM golang:1.20.5-alpine as builder
2+
FROM golang:1.22.1-alpine as builder
33

44
RUN apk add --no-cache make gcc musl-dev linux-headers git
55

Dockerfile.release

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WORKDIR ${BOR_DIR}
1010
COPY bor /usr/bin/
1111
COPY builder/files/genesis-mainnet-v1.json ${BOR_DIR}
1212
COPY builder/files/genesis-testnet-v4.json ${BOR_DIR}
13+
COPY builder/files/genesis-amoy.json ${BOR_DIR}
1314

1415
EXPOSE 8545 8546 8547 30303 30303/udp
1516
ENTRYPOINT ["bor"]

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test-txpool-race:
6565

6666
test-race:
6767
$(GOTEST) --timeout 15m -race -shuffle=on $(TESTALL)
68-
68+
6969
gocovmerge-deps:
7070
$(GOBUILD) -o $(GOBIN)/gocovmerge github.com/wadey/gocovmerge
7171

@@ -89,7 +89,7 @@ docs:
8989
$(GORUN) cmd/clidoc/main.go -d ./docs/cli
9090

9191
clean:
92-
env GO111MODULE=on go clean -cache
92+
go clean -cache
9393
rm -fr build/_workspace/pkg/ $(GOBIN)/*
9494

9595
# The devtools target installs tools required for 'go generate'.
@@ -201,7 +201,7 @@ geth-windows-amd64:
201201
@ls -ld $(GOBIN)/geth-windows-* | grep amd64
202202

203203
PACKAGE_NAME := github.com/maticnetwork/bor
204-
GOLANG_CROSS_VERSION ?= v1.20.5
204+
GOLANG_CROSS_VERSION ?= v1.22.1
205205

206206
.PHONY: release-dry-run
207207
release-dry-run:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ The easiest way to get started with bor is to install the packages using the com
1515

1616
curl -L https://raw.githubusercontent.com/maticnetwork/install/main/bor.sh | bash -s -- v0.4.0 <network> <node_type>
1717

18-
The network accepts `mainnet` or `mumbai` and the node type accepts `validator` or `sentry` or `archive`. The installation script does the following things:
18+
The network accepts `mainnet`,`amoy` or `mumbai` and the node type accepts `validator` or `sentry` or `archive`. The installation script does the following things:
1919
- Create a new user named `bor`.
2020
- Install the bor binary at `/usr/bin/bor`.
2121
- Dump the suitable config file (based on the network and node type provided) at `/var/lib/bor` and uses it as the home dir.
2222
- Create a systemd service named `bor` at `/lib/systemd/system/bor.service` which starts bor using the config file as `bor` user.
2323

24-
The releases supports both the networks i.e. Polygon Mainnet and Mumbai (Testnet) unless explicitly specified. Before the stable release for mainnet, pre-releases will be available marked with `beta` tag for deploying on Mumbai (testnet). On sufficient testing, stable release for mainnet will be announced with a forum post.
24+
The releases supports both the networks i.e. Polygon Mainnet, Amoy and Mumbai (Testnet) unless explicitly specified. Before the stable release for mainnet, pre-releases will be available marked with `beta` tag for deploying on Mumbai/Amoy (testnet). On sufficient testing, stable release for mainnet will be announced with a forum post.
2525

2626
### Building from source
2727

0 commit comments

Comments
 (0)