Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v1.14.6 #383

Open
wants to merge 60 commits into
base: merge-v1.14.5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
4461c1f
params: begin v1.14.6 release cycle
rjl493456442 Jun 6, 2024
4405f18
cmd/evm/internal/t8ntool: remove unused parameter (#29930)
Gealber Jun 7, 2024
6a49d13
go.mod : tidy
ucwong Jun 5, 2024
deaf109
cmd/clef, cmd/evm: fix markdown issues in README (#29954)
kukuru909 Jun 8, 2024
1098d14
cmd/geth: remove unused param (#29952)
hadv Jun 8, 2024
349fcdd
p2p/discover: add missing lock when calling tab.handleAddNode (#29960)
Gealber Jun 9, 2024
8bda642
p2p: use package slices to sort in PeersInfo (#29957)
Gealber Jun 9, 2024
db273c8
core: initialize developer genesis beacon root contract with 0 balanc…
jwasinger Jun 10, 2024
2eb185c
core, rlp: remove duplicated words (#29964)
tinyfoxy Jun 10, 2024
85587d5
cmd, core: prefetch reads too from tries if requested (#29807)
jwasinger Jun 11, 2024
3aa874b
core/state: rename all the AccessList receivers to 'al' (#29921)
mask-pp Jun 11, 2024
ffb29be
ethconfig: regenerate config (#29970)
ucwong Jun 11, 2024
caa066d
cmd/devp2p: fix log output (#29972)
bugmaker9371 Jun 11, 2024
c732039
.github: disable cache in actions run (#29926)
gballet Jun 11, 2024
b6f2bbd
p2p/simulations: update doc of HTTP endpoints (#29894)
bugmaker9371 Jun 11, 2024
1e97148
all: fix inconsistent receiver name and add lint rule for it (#29974)
fjl Jun 12, 2024
3687c34
accounts: avoid duplicate regex compilation (#29943)
yincongcyincong Jun 12, 2024
69351e8
core/state, eth/protocols, trie, triedb/pathdb: remove unused error …
jwasinger Jun 12, 2024
86150af
beacon/light: fix shutdown issues (#29946)
zsfelfoldi Jun 12, 2024
fd5078c
trie/triedb: add Reader to backend interface (#29988)
darioush Jun 14, 2024
34b46a2
core/state/snapshot: add a missing lock (#30001)
mask-pp Jun 17, 2024
a58e4f0
go.mod: update Pebble to sort out a deleted upstream dependency (#30010)
karalabe Jun 17, 2024
b78d235
log: fix some functions comments (#29907)
BabyHalimao Jun 17, 2024
115d154
trie, triedb/pathdb: prealloc capacity for map and slice (#29986)
mask-pp Jun 17, 2024
c736b04
triedb/pathdb: use maps.Clone and maps.Keys (#29985)
mask-pp Jun 17, 2024
d866449
common/math: fix out of bounds access in json unmarshalling (#30014)
decanus Jun 17, 2024
7cf6a63
core/state/snapshot: acquire the lock on Release (#30011)
MariusVanDerWijden Jun 18, 2024
67a862d
cmd/geth, ethdb/pebble: improve database statistic (#29948)
hadv Jun 19, 2024
0e3a0a6
trie: don't reset tracer at the end of Commit (#30024)
jwasinger Jun 19, 2024
c11aac2
common: using `ParseUint` instead of `ParseInt` (#30020)
Halimao Jun 19, 2024
2700840
core/txpool/blobpool: change rw-lock to r-lock (#29989)
psogv0308 Jun 19, 2024
00675c5
trie/trienode: avoid unnecessary copy (#30019)
mask-pp Jun 20, 2024
27654d3
p2p/rlpx: 2KB maximum size for handshake messages (#30029)
infosecual Jun 20, 2024
e0e45db
core/state/snapshot: tiny fixes (#29995)
rjl493456442 Jun 21, 2024
c10ac4f
Revert "core/state/snapshot: tiny fixes" (#30039)
rjl493456442 Jun 21, 2024
a71f6f9
p2p/discover: improve flaky revalidation tests (#30023)
Halimao Jun 21, 2024
d8ea7ac
cmd/blsync: use debug.Setup for logging configuration (#30065)
lightclient Jun 25, 2024
0a651f8
.github: add lightclient as codeowner to relevant packages (#30062)
lightclient Jun 25, 2024
fe0c0b0
accounts/keystore: use t.TempDir in test (#30052)
Halimao Jun 25, 2024
73f7e7c
internal/debug: remove unnecessary log level assignment (#30044)
amiremohamadi Jun 25, 2024
ed8fd0a
all: stateless witness builder and (self-)cross validator (#29719)
jwasinger Jun 25, 2024
98b5930
core/txpool/blobpool: avoid use *map as parameter. (#30048)
mask-pp Jun 25, 2024
9298d2d
trie/trienode: remove unnecessary check in Summary (#30047)
mask-pp Jun 25, 2024
269e80b
eth/tracers,trie: remove unnecessary check (#30071)
Halimao Jun 27, 2024
045b971
trie: relocate state execution logic into pathdb package (#29861)
rjl493456442 Jun 27, 2024
19c3c1e
triedb/pathdb: fix flaky test in pathdb (#29901)
lilasxie Jun 28, 2024
36d67be
core/txpool/blobpool: improve newPriceHeap function (#30050)
mask-pp Jun 28, 2024
4939c25
cmd/evm/internal/t8ntool: log writeTraceResult error message (#30038)
mask-pp Jun 28, 2024
06f1d07
all: replace division with right shift if possible (#29911)
gitglorythegreat Jun 28, 2024
7cfff30
rpc: truncate call error data logs (#30028)
ceyonur Jun 28, 2024
a4e338f
accounts/usbwallet/trezor: upgrade to generate with protoc 27.1 (#30058)
jwasinger Jul 1, 2024
41abab9
build: add check for stale generated files (#30037)
jwasinger Jul 1, 2024
0905660
core/state: fix inconsistent verkle test error messages (#29753)
hteevoli Jul 1, 2024
aadddf3
params: release Geth v1.14.6
gballet Jul 2, 2024
d694f03
Merge commit '1e97148249e027b68c2ff71fe14db4b1d36cf216' into merge-v1…
amsanghi Dec 9, 2024
d2862f4
Merge commit 'ed8fd0ac0919ee954cfa621d16a5d0cfbf30c96d' into merge-v1…
amsanghi Dec 9, 2024
a9b6686
Merge tag 'v1.14.6' into merge-v1.14.6
amsanghi Dec 9, 2024
46f9ea2
fix lint
amsanghi Dec 9, 2024
34de78d
fixes
amsanghi Dec 9, 2024
a51335e
Merge branch 'merge-v1.14.5' into merge-v1.14.6
amsanghi Dec 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
accounts/usbwallet @karalabe
accounts/scwallet @gballet
accounts/abi @gballet @MariusVanDerWijden
beacon/engine @lightclient
cmd/clef @holiman
cmd/evm @holiman @MariusVanDerWijden @lightclient
consensus @karalabe
core/ @karalabe @holiman @rjl493456442
eth/ @karalabe @holiman @rjl493456442
eth/catalyst/ @gballet
eth/catalyst/ @gballet @lightclient
eth/tracers/ @s1na
core/tracing/ @s1na
graphql/ @s1na
internal/ethapi @lightclient
internal/era @lightclient
les/ @zsfelfoldi @rjl493456442
light/ @zsfelfoldi @rjl493456442
node/ @fjl
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.21.4
cache: false
- name: Run tests
run: go test -short ./...
env:
Expand Down
13 changes: 13 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ linters:
- durationcheck
- exportloopref
- whitespace
- revive # only certain checks enabled

### linters we tried and will not be using:
###
Expand All @@ -38,6 +39,15 @@ linters:
linters-settings:
gofmt:
simplify: true
revive:
enable-all-rules: false
# here we enable specific useful rules
# see https://golangci-lint.run/usage/linters/#revive for supported rules
rules:
- name: receiver-naming
severity: warning
disabled: false
exclude: [""]

issues:
exclude-files:
Expand All @@ -47,6 +57,9 @@ issues:
linters:
- deadcode
- staticcheck
- path: crypto/bn256/
linters:
- revive
- path: internal/build/pgp.go
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
- path: core/vm/contracts.go
Expand Down
6 changes: 4 additions & 2 deletions accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ type Type struct {
var (
// typeRegex parses the abi sub types
typeRegex = regexp.MustCompile("([a-zA-Z]+)(([0-9]+)(x([0-9]+))?)?")

// sliceSizeRegex grab the slice size
sliceSizeRegex = regexp.MustCompile("[0-9]+")
)

// NewType creates a new reflection type of abi type given in t.
Expand Down Expand Up @@ -91,8 +94,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
// grab the last cell and create a type from there
sliced := t[i:]
// grab the slice size with regexp
re := regexp.MustCompile("[0-9]+")
intz := re.FindAllString(sliced, -1)
intz := sliceSizeRegex.FindAllString(sliced, -1)

if len(intz) == 0 {
// is a slice
Expand Down
6 changes: 1 addition & 5 deletions accounts/keystore/account_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
t.Parallel()

// Create a temporary keystore to test with
dir := filepath.Join(os.TempDir(), fmt.Sprintf("eth-keystore-updatedkeyfilecontents-test-%d-%d", os.Getpid(), rand.Int()))

// Create the directory
os.MkdirAll(dir, 0700)
defer os.RemoveAll(dir)
dir := t.TempDir()

ks := NewKeyStore(dir, LightScryptN, LightScryptP)

Expand Down
12 changes: 10 additions & 2 deletions accounts/scwallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ var (
DerivationSignatureHash = sha256.Sum256(common.Hash{}.Bytes())
)

var (
// PinRegexp is the regular expression used to validate PIN codes.
pinRegexp = regexp.MustCompile(`^[0-9]{6,}$`)

// PukRegexp is the regular expression used to validate PUK codes.
pukRegexp = regexp.MustCompile(`^[0-9]{12,}$`)
)

// List of APDU command-related constants
const (
claISO7816 = 0
Expand Down Expand Up @@ -380,15 +388,15 @@ func (w *Wallet) Open(passphrase string) error {
case passphrase == "":
return ErrPINUnblockNeeded
case status.PinRetryCount > 0:
if !regexp.MustCompile(`^[0-9]{6,}$`).MatchString(passphrase) {
if !pinRegexp.MatchString(passphrase) {
w.log.Error("PIN needs to be at least 6 digits")
return ErrPINNeeded
}
if err := w.session.verifyPin([]byte(passphrase)); err != nil {
return err
}
default:
if !regexp.MustCompile(`^[0-9]{12,}$`).MatchString(passphrase) {
if !pukRegexp.MatchString(passphrase) {
w.log.Error("PUK needs to be at least 12 digits")
return ErrPINUnblockNeeded
}
Expand Down
Loading
Loading