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.5 #179

Merged
merged 84 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
1a79f8f
params: begin v1.14.3 release cycle
fjl May 8, 2024
faff03c
.travis.yml: enable PPA upload on push and fix apt-get command (#29741)
fjl May 8, 2024
804afb8
.travis.yml: restore PPA condition and bump timeouts (#29742)
fjl May 8, 2024
ab48ba4
params: release go-ethereum v1.14.3 stable
fjl May 9, 2024
6d51c1f
params: begin v1.14.4 release cycle
fjl May 9, 2024
0e456d9
.travis.yml: disable normal unit tests in cron job (#29746)
fjl May 9, 2024
74edc93
params: gofmt
fjl May 9, 2024
e5f5eae
core/state: remove slot dirtyness if it's set back to origin value (#…
rjl493456442 May 10, 2024
603fd89
event: fix typo (#29749)
cocoyeal May 10, 2024
47af69c
core, beacon, ethdb: fix typos (#29748)
hteevoli May 10, 2024
44a50c9
cmd, core, params, trie: add verkle access witness gas charging (#29338)
gballet May 10, 2024
2ac83e1
core/state: blocking prefetcher on term signal, parallel updates (#29…
karalabe May 13, 2024
5b3e3cd
tests: update tests (#29730)
rjl493456442 May 13, 2024
be32843
core/state: remove useless operation (#29769)
rjl493456442 May 14, 2024
8919c5c
core: deploy EIP-4788 contract in dev mode genesis (#29655)
0xbeny May 14, 2024
d2f00cb
.github: upgrade to action versions with node20 (#29776)
cario-dev May 14, 2024
7ed52c9
core: move balanceCheck addition in buyGas (#29762)
zhiqiangxu May 15, 2024
473ee8f
trie, eth/protocols/snap: sanitize the committed node data (#29485)
rjl493456442 May 16, 2024
be5df74
trie: update the `valid` function comments (#29809)
cocoyeal May 21, 2024
7fd7c1f
eth/tracers: fix basefee context for traceBlock (#29811)
holiman May 21, 2024
0d4cdb3
internal/ethapi: fix typos (#29784)
karlb May 23, 2024
fa58176
eth/tracers: fix json logger for evm blocktest (#29795)
s1na May 23, 2024
b779e46
Makefile: add fmt, update help (#29777)
tr1sm0s1n May 23, 2024
70bee97
metrics: fix out of range error message (#29821)
Halimao May 23, 2024
6a9158b
p2p/discover: improved node revalidation (#29572)
fjl May 23, 2024
cc9e2bd
p2p/enode: fix endpoint determination for IPv6 (#29801)
fjl May 23, 2024
61b3d93
p2p/enode: fix TCPEndpoint (#29827)
AaronChen0 May 23, 2024
08fe6a8
metrics: fix flaky test`TestExpDecaySampleNanosecondRegression` (#29832)
Halimao May 24, 2024
64b1cd8
p2p: fix typos (#29828)
gitglorythegreat May 24, 2024
b6474e9
metrics: add test for `SampleSnapshot.Sum` (#29831)
levisyin May 24, 2024
d1d9f34
core/types: clarify set inclusion in comments (#29839)
winterjihwan May 26, 2024
7f5cc02
metrics: fix function comment (#29843)
Wukingbow May 27, 2024
7224576
core, eth/protocols/snap, internal/ethapi: remove redundant types (#2…
tr1sm0s1n May 27, 2024
1a4e4a4
miner: fix TestBuildPayload sporadic failure (#29853)
May 27, 2024
5132768
eth/downloader: fix flaky test (#29852)
rjl493456442 May 27, 2024
ea6c160
eth/tracers: clear error for non-reverting pre-homestead fail (#29824)
s1na May 28, 2024
caafa93
all: improve some error strings (#29842)
trillom8 May 28, 2024
42471d7
core/vm/runtime: set random to enable merge-opcodes (#29799)
holiman May 28, 2024
871e55d
core/state: fix typos in comments (#29767)
gitglorythegreat May 28, 2024
61932e4
cmd/geth: update testdata (vulncheck) (#29714)
holiman May 28, 2024
b88051e
core/rawdb, triedb/pathdb: fix freezer read-only option (#29823)
rjl493456442 May 28, 2024
af0a327
p2p/discover: fix crash when revalidated node is removed (#29864)
fjl May 28, 2024
e517183
eth, eth/downloader: remove references to LightChain, LightSync (#29…
jwasinger May 28, 2024
171430c
core/state: remove unused error from prefetcher trie method (#29768)
jwasinger May 28, 2024
cc22e0c
p2p/discover: fix update logic in handleAddNode (#29836)
lightclient May 28, 2024
5534c84
go.mod: update a number of dependencies (#29763)
holiman May 29, 2024
daf4f72
p2p/simulations: remove stale information about docker adapter (#29874)
bugmaker9371 May 29, 2024
153f8da
p2p/nodestate: remove unused package (#29872)
lilasxie May 29, 2024
b8cf163
accounts: fix TestUpdateKeyfileContents (#29867)
May 29, 2024
06263b1
all: fix typos in comments (#29873)
polymaer May 29, 2024
2f0e63e
eth/downloader, eth/tracer: fix typos in comments (#29707)
trillom8 May 29, 2024
e26fa9e
core/state: fix typo in comment (#29639)
niuxiaojie81 May 29, 2024
94a8b29
p2p/discover: refactor node and endpoint representation (#29844)
fjl May 29, 2024
3fef534
build: upgrade to golangci-lint v1.59.0 (#29875)
fjl May 29, 2024
2f06c1e
cmd/devp2p: fix node.TCP -> node.UDP (#29879)
hattizai May 29, 2024
6bb13e8
eth/catalyst: ensure TxPool is synced in Fork (#29876)
fjl May 29, 2024
e015c11
ethdb: remove unnecessary function wrapper (#29888)
suiyuan1314 May 30, 2024
2262bf3
crypto/secp256k1: change receiver variable name to lowercase (#29889)
suiyuan1314 May 30, 2024
5d7d48f
eth/gasprice: add comment to constant (#29892)
yosuzzy May 30, 2024
bdc62f9
common/math: rename variable name `int` to `n` (#29890)
tianyeyouyou May 31, 2024
2613523
miner: lower default min miner tip from 1 gwei to 0.001 gwei (#29895)
karalabe May 31, 2024
d4b81f0
CODEOWNERS: @s1na owns core/tracing (#29899)
s1na May 31, 2024
c9e0b31
Supply delta live tracer (#29347)
ziogaschr Jun 3, 2024
d38b88a
core/state: introduce stateupdate structure (#29530)
rjl493456442 Jun 3, 2024
50405e2
cmd/evm/internal/t8ntool: fix a typo (#29887)
0xmountaintop Jun 3, 2024
b36c738
beacon/engine: prealloc capacity for map and slice (#29903)
mask-pp Jun 3, 2024
7270cba
log: fix a typo (#29883)
miles-six Jun 3, 2024
a6751d6
core/rawdb,eth/protocols,p2p: prealloc slice size (#29893)
tianyeyouyou Jun 3, 2024
adbbd8c
core/state: prefetch account trie while starting a prefetcher (#29919)
Jun 4, 2024
68c0ec0
trie: iterate values pre-order and fix seek behavior (#27838)
roysc Jun 4, 2024
682ae83
internal/ethapi: recap higher args.Gas with block GasLimit in DoEstim…
SangIlMo Jun 4, 2024
125fb1f
core/state: avoid data race (#29924)
rjl493456442 Jun 4, 2024
5550d83
params: release Geth v1.14.4
karalabe Jun 5, 2024
fc40d68
params: begin v1.14.5 release cycle
karalabe Jun 5, 2024
e85e21c
core/state, eth/tracers: fix typos (#29932)
hteevoli Jun 5, 2024
d09ddac
core/rawdb: remove unused deriveLogFields (#29913)
9547 Jun 5, 2024
bc65694
p2p: use netip.Addr where possible (#29891)
fjl Jun 5, 2024
6c518fe
build: upgrade -dlgo version to Go 1.22.4 (#29938)
sandakersmann Jun 6, 2024
cbbfa3e
rlp: no need to repeat called len method (#29936)
9547 Jun 6, 2024
0750cb0
p2p/netutil: fix comments (#29942)
hteevoli Jun 6, 2024
85459e1
p2p/discover: unwrap 4-in-6 UDP source addresses (#29944)
fjl Jun 6, 2024
0dd173a
params: release Geth v1.14.5
rjl493456442 Jun 6, 2024
85e179f
Merge tag 'v1.14.5' into TS_v1.14.5
tyler-smith Jun 19, 2024
82775a0
fix: Ignore nil *receipt which is now sent for reverting txs.
tyler-smith Jun 19, 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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ core/ @karalabe @holiman @rjl493456442
eth/ @karalabe @holiman @rjl493456442
eth/catalyst/ @gballet
eth/tracers/ @s1na
core/tracing/ @s1na
graphql/ @s1na
les/ @zsfelfoldi @rjl493456442
light/ @zsfelfoldi @rjl493456442
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.21.4
- name: Run tests
Expand Down
6 changes: 4 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ run:
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
skip-files:
- core/genesis_alloc.go

linters:
disable-all: true
Expand All @@ -26,6 +24,8 @@ linters:
- exportloopref
- whitespace

### linters we tried and will not be using:
###
# - structcheck # lots of false positives
# - errcheck #lot of false positives
# - contextcheck
Expand All @@ -40,6 +40,8 @@ linters-settings:
simplify: true

issues:
exclude-files:
- core/genesis_alloc.go
exclude-rules:
- path: crypto/bn256/cloudflare/optate.go
linters:
Expand Down
21 changes: 8 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,28 +97,21 @@ jobs:

# These builders run the tests
- stage: build
if: type = push
os: linux
arch: amd64
dist: noble
go: 1.22.x
script:
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES

- stage: build
if: type = pull_request
os: linux
arch: arm64
dist: noble
go: 1.21.x
script:
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES
- travis_wait 45 go run build/ci.go test $TEST_PACKAGES

- stage: build
if: type = push
os: linux
dist: noble
go: 1.21.x
script:
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES
- travis_wait 45 go run build/ci.go test $TEST_PACKAGES

# This builder does the Ubuntu PPA nightly uploads
- stage: build
Expand All @@ -131,7 +124,7 @@ jobs:
git:
submodules: false # avoid cloning ethereum/tests
before_install:
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends install devscripts debhelper dput fakeroot python-bzrlib python-paramiko
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends install devscripts debhelper dput fakeroot
script:
- echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"
Expand All @@ -155,5 +148,7 @@ jobs:
os: linux
dist: noble
go: 1.22.x
env:
- racetests
script:
- travis_wait 30 go run build/ci.go test -race $TEST_PACKAGES
- travis_wait 60 go run build/ci.go test -race $TEST_PACKAGES
24 changes: 16 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,43 @@
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.

.PHONY: geth all test lint clean devtools help
.PHONY: geth all test lint fmt clean devtools help

GOBIN = ./build/bin
GO ?= latest
GORUN = go run

#? geth: Build geth
#? geth: Build geth.
geth:
$(GORUN) build/ci.go install ./cmd/geth
@echo "Done building."
@echo "Run \"$(GOBIN)/geth\" to launch geth."

#? all: Build all packages and executables
#? all: Build all packages and executables.
all:
$(GORUN) build/ci.go install

#? test: Run the tests
#? test: Run the tests.
test: all
$(GORUN) build/ci.go test

#? lint: Run certain pre-selected linters
#? lint: Run certain pre-selected linters.
lint: ## Run linters.
$(GORUN) build/ci.go lint

#? clean: Clean go cache, built executables, and the auto generated folder
#? fmt: Ensure consistent code formatting.
fmt:
gofmt -s -w $(shell find . -name "*.go")

#? clean: Clean go cache, built executables, and the auto generated folder.
clean:
go clean -cache
rm -fr build/_workspace/pkg/ $(GOBIN)/*

# The devtools target installs tools required for 'go generate'.
# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.

#? devtools: Install recommended developer tools
#? devtools: Install recommended developer tools.
devtools:
env GOBIN= go install golang.org/x/tools/cmd/stringer@latest
env GOBIN= go install github.com/fjl/gencodec@latest
Expand All @@ -45,5 +49,9 @@ devtools:

#? help: Get more info on make commands.
help: Makefile
@echo " Choose a command run in go-ethereum:"
@echo ''
@echo 'Usage:'
@echo ' make [target]'
@echo ''
@echo 'Targets:'
@sed -n 's/^#?//p' $< | column -t -s ':' | sort | sed -e 's/^/ /'
9 changes: 6 additions & 3 deletions accounts/keystore/account_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ func TestUpdatedKeyfileContents(t *testing.T) {

// 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)

ks := NewKeyStore(dir, LightScryptN, LightScryptP)

list := ks.Accounts()
Expand All @@ -335,9 +340,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
if !waitWatcherStart(ks) {
t.Fatal("keystore watcher didn't start in time")
}
// Create the directory and copy a key file into it.
os.MkdirAll(dir, 0700)
defer os.RemoveAll(dir)
// Copy a key file into it
file := filepath.Join(dir, "aaa")

// Place one of our testfiles in there
Expand Down
2 changes: 1 addition & 1 deletion beacon/engine/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func ExecutableDataToBlock(params ExecutableData, versionedHashes []common.Hash,
if params.BaseFeePerGas != nil && (params.BaseFeePerGas.Sign() == -1 || params.BaseFeePerGas.BitLen() > 256) {
return nil, fmt.Errorf("invalid baseFeePerGas: %v", params.BaseFeePerGas)
}
var blobHashes []common.Hash
var blobHashes = make([]common.Hash, 0, len(txs))
for _, tx := range txs {
blobHashes = append(blobHashes, tx.BlobHashes()...)
}
Expand Down
2 changes: 1 addition & 1 deletion beacon/light/sync/head_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestValidatedHead(t *testing.T) {
ts.ServerEvent(EvNewOptimisticUpdate, testServer3, testOptUpdate4)
// finality should be requested from both servers
ts.Run(4, testServer1, ReqFinality{}, testServer3, ReqFinality{})
// future period annonced heads should be queued
// future period announced heads should be queued
ht.ExpValidated(t, 4, nil)

chain.SetNextSyncPeriod(2)
Expand Down
2 changes: 1 addition & 1 deletion beacon/types/exec_payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func convertPayload[T payloadType](payload T, parentRoot *zrntcommon.Root) (*typ

block := types.NewBlockWithHeader(&header).WithBody(types.Body{Transactions: transactions, Withdrawals: withdrawals})
if hash := block.Hash(); hash != expectedHash {
return nil, fmt.Errorf("Sanity check failed, payload hash does not match (expected %x, got %x)", expectedHash, hash)
return nil, fmt.Errorf("sanity check failed, payload hash does not match (expected %x, got %x)", expectedHash, hash)
}
return block, nil
}
Expand Down
Loading
Loading