Skip to content

Commit a4e8cf1

Browse files
authored
Merge pull request #126 from BoostryJP/dev-2.6
Release v2.6.0
2 parents 6181f13 + 8450958 commit a4e8cf1

File tree

84 files changed

+394
-643
lines changed

Some content is hidden

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

84 files changed

+394
-643
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v4
2929
- uses: actions/setup-go@v5
3030
with:
31-
go-version: '1.23'
31+
go-version: '1.25'
3232

3333
# Initializes the CodeQL tools for scanning.
3434
- name: Initialize CodeQL

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- '**.md'
77
- .gitignore
88
env:
9-
GO_VERSION: 1.23.1
9+
GO_VERSION: 1.25.0
1010
jobs:
1111
lint:
1212
name: 'Code linters'

.golangci.yml

Lines changed: 78 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# This file configures github.com/golangci/golangci-lint.
2-
2+
version: '2'
33
run:
4-
timeout: 20m
54
tests: true
6-
75
linters:
8-
disable-all: true
6+
default: none
97
enable:
10-
- goimports
11-
- gosimple
8+
- bidichk
9+
- copyloopvar
10+
- durationcheck
11+
- gocheckcompilerdirectives
1212
- govet
1313
- ineffassign
14+
- mirror
1415
- misspell
16+
- reassign
17+
- staticcheck
1518
- unconvert
16-
- typecheck
1719
- unused
18-
- staticcheck
19-
- bidichk
20-
- durationcheck
20+
- usetesting
2121
- whitespace
2222

2323
# - structcheck # lots of false positives
@@ -28,36 +28,71 @@ linters:
2828
# - exhaustive # silly check
2929
# - makezero # false positives
3030
# - nilerr # several intentional
31-
32-
linters-settings:
33-
gofmt:
34-
simplify: true
35-
goconst:
36-
min-len: 3 # minimum length of string constant
37-
min-occurrences: 6 # minimum number of occurrences
38-
39-
issues:
40-
exclude-files:
41-
- core/genesis_alloc.go
42-
exclude-rules:
43-
- path: crypto/bn256/cloudflare/optate.go
44-
linters:
45-
- deadcode
46-
- staticcheck
47-
- path: internal/build/pgp.go
48-
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
49-
- path: core/vm/contracts.go
50-
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
51-
- path: accounts/usbwallet/trezor.go
52-
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
53-
- path: accounts/usbwallet/trezor/
54-
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
55-
- path: plugin/account/internal/testutils/matchers.go
56-
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
57-
- path: consensus/ethash/
58-
text: 'SA1019: reflect.SliceHeader has been deprecated since Go 1.21 and an alternative has been available since Go 1.17: Use unsafe.Slice or unsafe.SliceData instead.'
59-
exclude:
60-
- 'SA1019: event.TypeMux is deprecated: use Feed'
61-
- 'SA1019: strings.Title is deprecated'
62-
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
63-
- 'SA1029: should not use built-in type string as key for value'
31+
settings:
32+
staticcheck:
33+
checks:
34+
# disable Quickfixes
35+
- -QF1*
36+
revive:
37+
enable-all-rules: false
38+
# here we enable specific useful rules
39+
# see https://golangci-lint.run/usage/linters/#revive for supported rules
40+
rules:
41+
- name: receiver-naming
42+
severity: warning
43+
disabled: false
44+
exclude:
45+
- ''
46+
exclusions:
47+
generated: lax
48+
presets:
49+
- comments
50+
- common-false-positives
51+
- legacy
52+
- std-error-handling
53+
rules:
54+
- linters:
55+
- deadcode
56+
- staticcheck
57+
path: crypto/bn256/cloudflare/optate.go
58+
- linters:
59+
- revive
60+
path: crypto/bn256/
61+
- path: internal/build/pgp.go
62+
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
63+
- path: core/vm/contracts.go
64+
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
65+
- path: accounts/usbwallet/trezor.go
66+
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
67+
- path: accounts/usbwallet/trezor/
68+
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
69+
- path: plugin/account/internal/testutils/matchers.go
70+
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
71+
- path: consensus/ethash/
72+
text: 'SA1019: reflect.SliceHeader has been deprecated since Go 1.21 and an alternative has been available since Go 1.17: Use unsafe.Slice or unsafe.SliceData instead.'
73+
- path: (.+)\.go$
74+
text: 'SA1019: event.TypeMux is deprecated: use Feed'
75+
- path: (.+)\.go$
76+
text: 'SA1019: strings.Title is deprecated'
77+
- path: (.+)\.go$
78+
text: 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
79+
- path: (.+)\.go$
80+
text: 'SA1029: should not use built-in type string as key for value'
81+
paths:
82+
- core/genesis_alloc.go
83+
- third_party$
84+
- builtin$
85+
- examples$
86+
formatters:
87+
enable:
88+
- goimports
89+
settings:
90+
gofmt:
91+
simplify: true
92+
exclusions:
93+
generated: lax
94+
paths:
95+
- core/genesis_alloc.go
96+
- third_party$
97+
- builtin$
98+
- examples$

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.23-alpine as builder
7+
FROM golang:1.25-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

Dockerfile.alltools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.23-alpine as builder
7+
FROM golang:1.25-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ The version control policy of this project follows that of ibet-Network.
2222
Currently, the ibet Network is built using a node client based on v24.4.0 of GoQuorum.
2323
However, it has been variously patched to be optimized for ibet Network. For example:
2424
- The default block generation interval is set to 1 second.
25-
- Fully supports Go 1.23 and applies new 3rd party packages from a security perspective.
25+
- Fully supports Go 1.25 and applies new 3rd party packages from a security perspective.
2626
- Made temporary fixes for bugs before they were fixed in the original GoQuorum.
2727

2828
## Building the source
29-
Building quorum requires both a Go (version 1.23) and a C compiler.
29+
Building quorum requires both a Go (version 1.25) and a C compiler.
3030
You can install them using your favourite package manager.
3131
Once the dependencies are installed, run
3232
```

accounts/abi/bind/bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]
182182
}
183183
// Parse library references.
184184
for pattern, name := range libs {
185-
matched, err := regexp.Match("__\\$"+pattern+"\\$__", []byte(contracts[types[i]].InputBin))
185+
matched, err := regexp.MatchString("__\\$"+pattern+"\\$__", contracts[types[i]].InputBin)
186186
if err != nil {
187187
log.Error("Could not search for pattern", "pattern", pattern, "contract", contracts[types[i]], "err", err)
188188
}

accounts/abi/bind/bind_test.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,14 +1795,9 @@ func TestGolangBindings(t *testing.T) {
17951795
t.Skip("go sdk not found for testing")
17961796
}
17971797
// Create a temporary workspace for the test suite
1798-
ws, err := os.MkdirTemp("", "binding-test")
1799-
if err != nil {
1800-
t.Fatalf("failed to create temporary workspace: %v", err)
1801-
}
1802-
//defer os.RemoveAll(ws)
1803-
1798+
ws := t.TempDir()
18041799
pkg := filepath.Join(ws, "bindtest")
1805-
if err = os.MkdirAll(pkg, 0700); err != nil {
1800+
if err := os.MkdirAll(pkg, 0700); err != nil {
18061801
t.Fatalf("failed to create package: %v", err)
18071802
}
18081803
// Generate the test suite for all the contracts

accounts/abi/event_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ func TestEventTupleUnpack(t *testing.T) {
327327

328328
for _, tc := range testCases {
329329
assert := assert.New(t)
330-
tc := tc
331330
t.Run(tc.name, func(t *testing.T) {
332331
err := unpackTestEventData(tc.dest, tc.data, tc.jsonLog, assert)
333332
if tc.error == "" {

accounts/abi/unpack_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ func TestMethodMultiReturn(t *testing.T) {
362362
"Can not unpack into a slice with wrong types",
363363
}}
364364
for _, tc := range testCases {
365-
tc := tc
366365
t.Run(tc.name, func(t *testing.T) {
367366
require := require.New(t)
368367
err := abi.UnpackIntoInterface(tc.dest, "multi", data)

0 commit comments

Comments
 (0)