Skip to content

Commit 58657c4

Browse files
authored
Merge branch 'master' into master
2 parents 9cf0da6 + bee475b commit 58657c4

File tree

370 files changed

+9234
-3881
lines changed

Some content is hidden

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

370 files changed

+9234
-3881
lines changed

.github/workflows/automake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
jobs:
2020
automake:
2121
name: automake
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-22.04
2323
steps:
2424
- uses: actions/checkout@v3
2525
with:

.github/workflows/build.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push,pull_request]
33

44
jobs:
55
check_fmt:
6-
runs-on: ubuntu-20.04
6+
runs-on: ubuntu-22.04
77
steps:
88
- uses: actions/checkout@v3
99
with:
@@ -18,10 +18,10 @@ jobs:
1818
# TODO: this will hopefully be fixed by
1919
# https://github.com/actions/setup-go/issues/14
2020
export PATH=${PATH}:`go env GOPATH`/bin
21-
go install golang.org/x/tools/cmd/goimports@latest
22-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2
23-
go install mvdan.cc/sh/cmd/shfmt@latest
24-
go install mvdan.cc/sh/cmd/gosh@latest
21+
go install golang.org/x/tools/cmd/goimports@v0.24.0
22+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
23+
go install mvdan.cc/sh/v3/cmd/shfmt@v3.7.0
24+
go install mvdan.cc/sh/v3/cmd/gosh@v3.7.0
2525
2626
- name: Lint
2727
run: |
@@ -31,7 +31,7 @@ jobs:
3131
3232
unit-test:
3333
name: unit-test
34-
runs-on: ubuntu-20.04
34+
runs-on: ubuntu-22.04
3535
steps:
3636
- uses: actions/checkout@v3
3737
with:
@@ -48,7 +48,7 @@ jobs:
4848
4949
coverage:
5050
name: coverage
51-
runs-on: ubuntu-20.04
51+
runs-on: ubuntu-22.04
5252
steps:
5353
- uses: actions/checkout@v3
5454
with:
@@ -69,7 +69,7 @@ jobs:
6969
build-with-latest-stable-go:
7070
strategy:
7171
matrix:
72-
os: [ ubuntu-20.04, macos-12 ]
72+
os: [ ubuntu-22.04, macos-14 ]
7373
runs-on: ${{ matrix.os }}
7474
steps:
7575
- uses: actions/checkout@v3
@@ -85,7 +85,7 @@ jobs:
8585
8686
deploy:
8787
name: deploy
88-
runs-on: ubuntu-20.04
88+
runs-on: ubuntu-22.04
8989
steps:
9090
- uses: actions/checkout@v3
9191
with:
@@ -103,7 +103,7 @@ jobs:
103103
104104
test-goarch-386:
105105
name: Run test cases with GOARCH=386
106-
runs-on: ubuntu-20.04
106+
runs-on: ubuntu-22.04
107107

108108
steps:
109109
- uses: actions/checkout@v3
@@ -120,4 +120,3 @@ jobs:
120120
run: go test ./... -covermode=atomic
121121
env:
122122
GOARCH: 386
123-

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
analyze:
2525
name: Analyze
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-22.04
2727
permissions:
2828
actions: read
2929
contents: read

.github/workflows/manual_make_bin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on: [push,pull_request]
99
jobs:
1010
automake:
1111
name: automake
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-go@v3
@@ -20,7 +20,7 @@ jobs:
2020
run: make all-arch
2121

2222
- name : Upload artifact bin
23-
uses: actions/upload-artifact@v2
23+
uses: actions/upload-artifact@v4
2424
with:
2525
name: chain33-artifact
2626
path: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
name: Build
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v3
1515
with:

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
changelog
22

3+
<a name="1.69.0"></a>
4+
# [1.69.0](https://github.com/33cn/chain33/compare/v1.68.2...v1.69.0) (2024-05-31)
5+
6+
7+
### Features
8+
9+
* import avalanche snowman engine ([25b1b0c](https://github.com/33cn/chain33/commit/25b1b0c))
10+
311
<a name="1.68.2"></a>
412
## [1.68.2](https://github.com/33cn/chain33/compare/v1.68.1...v1.68.2) (2024-04-12)
513

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ build_ci: depends ## Build the binary file for CI
130130

131131
linter: vet ineffassign gosec ## Use gometalinter check code, ignore some unserious warning
132132
@./golinter.sh "filter"
133-
@find . -name '*.sh' -not -path "./vendor/*" | xargs shellcheck -e SC2086
133+
@find . -name '*.sh' -not -path "./vendor/*" | xargs shellcheck -e SC2086,SC2004
134134

135135
linter_test: ## Use gometalinter check code, for local test
136136
@./golinter.sh "test" "${p}"
137137
@find . -name '*.sh' -not -path "./vendor/*" | xargs shellcheck
138138

139139
gosec:
140-
@golangci-lint run --no-config --issues-exit-code=1 --deadline=2m --disable-all --enable=gosec --skip-dirs=commands --exclude=G108,G204,G306,G404
140+
@golangci-lint run --no-config --issues-exit-code=1 --deadline=2m --disable-all --enable=gosec --skip-dirs=commands --exclude=G108,G204,G306,G404,G114
141141

142142
race: ## Run data race detector
143143
@go test -race -short `go list ./... | grep -v "mocks"`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ L3 20000
3939

4040
## Building from source
4141

42-
环境要求: Go 1.19+
42+
环境要求: Go 1.20+
4343

4444
编译:
4545

account/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (acc *DB) SaveAccount(acc1 *types.Account) {
207207
}
208208
}
209209

210-
//SaveKVSet 保存Key Value set
210+
// SaveKVSet 保存Key Value set
211211
func (acc *DB) SaveKVSet(set []*types.KeyValue) {
212212
for i := 0; i < len(set); i++ {
213213
err := acc.db.Set(set[i].GetKey(), set[i].Value)

account/execaccount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (acc *DB) TransferWithdraw(from, to string, amount int64) (*types.Receipt,
9595
return acc.mergeReceipt(receipt, receipt2), nil
9696
}
9797

98-
//ExecFrozen 执行冻结资金,四个操作中 Deposit 自动完成,不需要模块外的函数来调用
98+
// ExecFrozen 执行冻结资金,四个操作中 Deposit 自动完成,不需要模块外的函数来调用
9999
func (acc *DB) ExecFrozen(addr, execaddr string, amount int64) (*types.Receipt, error) {
100100
if addr == execaddr {
101101
return nil, types.ErrSendSameToRecv

0 commit comments

Comments
 (0)