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/foundation release/v1.14 #649

Draft
wants to merge 298 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
298 commits
Select commit Hold shift + click to select a range
3dc549b
p2p/simulations/adapters: fix error messages in TestTCPPipeBidirectio…
keroro520 Mar 10, 2024
b393ad8
cmd, core, metrics: always report expensive metrics (#29191)
karalabe Mar 11, 2024
00c2112
core/txpool/blobpool: return ErrAlreadyKnown for duplicate txs (#29210)
PlasmaPower Mar 11, 2024
fa4ade8
core: fix deprecation comment for GenesisAccount (#29218)
s1na Mar 11, 2024
ebf9e11
beacon/light/request: fix typos (#29216)
testwill Mar 11, 2024
4e1116f
crypto/bn256/cloudflare: fix noescape-directive (#29222)
kumakichi Mar 12, 2024
89cefe2
cmd: use package filepath over path for file system operations (#29227)
songzhibin97 Mar 12, 2024
99bbbc0
internal/build, rpc: add missing HTTP response body Close() calls (#2…
wzshiming Mar 12, 2024
4bd55a0
common/math: copy result in Exp (#29233)
AaronChen0 Mar 12, 2024
6c76b81
miner: add additional log (#29193)
MariusVanDerWijden Mar 12, 2024
758fce7
p2p: fix race in dialScheduler (#29235)
fjl Mar 12, 2024
eff424c
eth/tracers: fix concurrency issue for JS-tracing a block (#29238)
s1na Mar 13, 2024
d5bacfa
crypto/kz4844: pass blobs by ref (#29050)
holiman Mar 13, 2024
b80643b
accounts/usbwallet, common/bitutil: fix broken links in docs (#29078)
justindhillon Mar 13, 2024
c170fa2
core: improve chain rewinding mechanism (#29196)
rjl493456442 Mar 13, 2024
f3d18d6
tests, appveyor: only execute one in four permutations on CI (#29220)
holiman Mar 13, 2024
57308be
go.mod: update golang.org/x/crypto from v0.17.0 to v0.21.0 (#29228)
songzhibin97 Mar 13, 2024
3c26ffe
eth/catalyst: remove error return in delayPayloadImport (#29043)
tmelhao Mar 13, 2024
20d3e0a
cmd/devp2p: fix decoding of raw RLP ENR attributes (#29257)
weiihann Mar 14, 2024
d28adb6
cmd/emv/internal/t8ntool: fix shadowing of `excessBlobGas` (#29263)
dyxushuai Mar 14, 2024
cffb7c8
params: use the same variable name as EIP-4788 (#29195)
tmelhao Mar 15, 2024
95715fd
eth/downloader, graphql: fix typos (#29243)
shivhg Mar 15, 2024
40cac1d
eth/catalyst: prettier output on bad new payloads (#29259)
holiman Mar 15, 2024
ba2dd93
accounts/abi/bind: remove unused err set and check (#29269)
kumakichi Mar 15, 2024
c611924
go.mod: update protobuf (#29270)
holiman Mar 18, 2024
ab49f22
all: update to go version 1.22.1 (#28946)
holiman Mar 18, 2024
15eb977
triedb/pathdb: improve tests (#29278)
rjl493456442 Mar 19, 2024
ac6060a
log: replace tmp with bytes.Buffer.AvailableBuffer (#29287)
AaronChen0 Mar 19, 2024
6b3d4d0
beacon/light/sync: fix typo in comment (#29256)
AtomicInnovation321 Mar 19, 2024
eda9c7e
accounts/abi/bind: check invalid chainID first (#29275)
htiennv Mar 19, 2024
4c1b578
miner: modify header before checking time-based fields (#29242)
buddh0 Mar 19, 2024
6f929a0
core/asm: minor code-clarification (#29293)
zgfzgf Mar 20, 2024
45b88ab
all: fix typos (#29288)
miles-six Mar 20, 2024
0ceac8d
metrics: fix docstrings (#29279)
georgehao Mar 20, 2024
de08f3d
cmd/evm: make staterunner always output stateroot to stderr (#29290)
holiman Mar 20, 2024
9a7e6ce
cmd/evm: fix flag-mismatch from #29290 (#29298)
holiman Mar 20, 2024
22ac46c
Makefile: update PHONY directive (#29296)
imalasong Mar 20, 2024
78c102d
core: skip the check the statefulness of head block in repair (#29245)
rjl493456442 Mar 20, 2024
0444388
core/txpool/blobpool: calculate log1.125 faster (#29300)
AaronChen0 Mar 20, 2024
8f7fbdf
core: refactor consensus interface (#29283)
MariusVanDerWijden Mar 20, 2024
04bf1c8
eth/protocols/snap, internal/testlog: fix dataraces (#29301)
holiman Mar 20, 2024
bca6c40
beacon/blsync: support for deneb fork (#29180)
fjl Mar 20, 2024
14eb896
all: use min/max/clear from go1.21 (#29307)
holiman Mar 21, 2024
f46fe62
triedb/hashdb: Avoid setting db.cleans on Close (#29309)
darioush Mar 22, 2024
6490d98
cmd, triedb: implement history inspection (#29267)
rjl493456442 Mar 22, 2024
d9bde37
log: use native log/slog instead of golang/exp (#29302)
holiman Mar 22, 2024
38eb8b3
all: fix docstrings (#29311)
availhang Mar 22, 2024
064f37d
eth/tracers: live chain tracing with hooks (#29189)
s1na Mar 22, 2024
6f1fb0c
metrics/influxdb: skip float64-precision-dependent tests on arm64 (#2…
NathanBSC Mar 24, 2024
ae47004
eth: fix typo (#29320)
deterclosed Mar 25, 2024
14cc967
all: remove dependency on golang.org/exp (#29314)
holiman Mar 25, 2024
5cea7a6
ethclient/simulated: clean up Node resources when simulated backend i…
roberto-bayardo Mar 25, 2024
eda9cb7
beacon/light/api: improve handling of event stream setup failures (#2…
fjl Mar 25, 2024
100c0f4
beacon/blsync: fixed blsync command line params (#29335)
zsfelfoldi Mar 25, 2024
738b5a5
Removes some leftover `err` check (#29339)
maoueh Mar 26, 2024
f2a6ac1
eth/catalyst: fix flaw in withdrawal-gathering in simulated beacon (#…
AaronChen0 Mar 26, 2024
1dd898c
tests: fix panic via state test runner using json logger (#29349)
holiman Mar 26, 2024
58a3e2f
core/state: perform updates before deletions when mutating tries (#29…
jwasinger Mar 26, 2024
723b1e3
all: fix mismatched names in comments (#29348)
AaronChen0 Mar 26, 2024
da7469e
core: add an end-to-end verkle test (#29262)
gballet Mar 26, 2024
304879d
eth/protocols/snap: check storage root existence for hash scheme (#29…
rjl493456442 Mar 27, 2024
8bb8f23
beacon/engine: Fix json param name in GetClientVersionV1 (#29351)
pawanjay176 Mar 27, 2024
fa5019d
accounts/keystore: fix typos in comments (#29336)
crazeteam Mar 27, 2024
767b00b
t8ntool: add optional call frames to json logger (#29353)
s1na Mar 27, 2024
7aba651
ethdb/dbtest: replace reflect.DeepEqual with slices.Equal (#29382)
cuiweixie Mar 28, 2024
3b77e0f
core: remove unused code (#29381)
rjl493456442 Mar 28, 2024
3754a6c
p2p/dnsdisc: using maps.Copy (#29377)
cuiweixie Mar 28, 2024
7481398
core/state: using slices.Clone (#29366)
cuiweixie Mar 28, 2024
0183c7a
eth/tracers/logger: using maps.Equal (#29384)
cuiweixie Mar 28, 2024
a382917
eth/tracers/js: consistent name for method receivers (#29375)
bnovil Mar 28, 2024
c39d00e
trie: using maps.Clone (#29419)
cuiweixie Apr 1, 2024
6c9f702
core/types: using maps.Clone (#29398)
cuiweixie Apr 1, 2024
8c5576b
eth/tracers: fix base fee and set blob fee in tests (#29376)
jsvisa Apr 1, 2024
fde9044
log: replace the outdated link (#29412)
carehabit Apr 2, 2024
31e63fc
rlp: using maps.Clone (#29434)
cuiweixie Apr 2, 2024
e63f992
rpc: fix ipc max path size (#29385)
fearlesschenc Apr 2, 2024
0bd03db
eth/filter: using atomic.Pointer instead of atomic.Value (#29435)
cuiweixie Apr 2, 2024
fe0bf32
cmd/evm: reopen the statedb for dumping (#29437)
rjl493456442 Apr 2, 2024
ab6419c
core/state: use maps.Clone (#29365)
cuiweixie Apr 2, 2024
12dcc16
common/lru: use clear builtin (#29399)
cuiweixie Apr 2, 2024
a83e576
eth/fetcher: using slices.Contains (#29383)
cuiweixie Apr 2, 2024
dfb3d46
p2p: add inbound and outbound peers metric (#29424)
weiihann Apr 2, 2024
7bb3fb1
eth: simplify peer counting logic (#29420)
cuiweixie Apr 3, 2024
1f8f137
build: upgrade -dlgo version to Go 1.22.2 (#29448)
sandakersmann Apr 4, 2024
6b39e92
beacon/engine: using slices.Contains (#29396)
cuiweixie Apr 4, 2024
eea0acc
log: using maps.Clone (#29392)
cuiweixie Apr 4, 2024
2e0c5e0
p2p/dnsdisc: using clear builtin func (#29418)
cuiweixie Apr 4, 2024
8bd0334
crypto/signify: close tmp key file in test (#29444)
testwill Apr 4, 2024
9dfe728
p2p/discover: using slices.Contains (#29395)
cuiweixie Apr 4, 2024
9cb8de8
internal/debug: convert legacy log level value in debug_verbosity (#2…
lightclient Apr 4, 2024
a851e39
core/types: use new atomic types in caches (#29411)
lmittmann Apr 4, 2024
e3bdd84
core/txpool: repair the limbo Billy too on unclean shutdowns (#29451)
karalabe Apr 4, 2024
15ff066
trie/utils: change Div+Mod to DivMod (#29413)
AaronChen0 Apr 4, 2024
35fcf9c
beacon/types: enforce fork order based on known forks list (#29380)
zsfelfoldi Apr 4, 2024
7ee9a6e
signer: implement blob txs sendtxargs, enable blobtx-signing (#28976)
holiman Apr 5, 2024
4458905
signer/core/apitypes: fix apitypes breakage due to bitrotted PR (#29470)
holiman Apr 5, 2024
cc348a6
common/prque: fix godoc comments (#29460)
georgehao Apr 6, 2024
74995bf
all: use slices.Contains (#29459)
AaronChen0 Apr 6, 2024
ccb76c0
eth/tracers: use slices.Contains (#29461)
AaronChen0 Apr 6, 2024
8876868
log: default JSON log handler should log all verbosity levels (#29471)
roberto-bayardo Apr 6, 2024
7aafad2
core/vm: better error-info for vm errors (#29354)
holiman Apr 6, 2024
0dc09da
all: replace path.Join with filepath.Join (#29479)
imalasong Apr 8, 2024
cfc7d06
signer/core/apitypes: use slices.Contains (#29474)
AaronChen0 Apr 8, 2024
ed4bc7f
all: replace fmt.Errorf() with errors.New() if no param required (#29…
AaronChen0 Apr 8, 2024
c3465cb
core: fix dev mode genesis difficulty (#29469)
s1na Apr 8, 2024
3c75c64
core: fix typo (#29438)
seay404 Apr 8, 2024
c170cc0
core/vm: reject contract creation if the storage is non-empty (#28912)
rjl493456442 Apr 8, 2024
70bf94c
internal, signer/core: replace path.Join with filepath.Join (#29489)
AaronChen0 Apr 9, 2024
f447de9
rlp: replace reflect.PtrTo with reflect.PointerTo (#29488)
mohanson Apr 9, 2024
3caf617
core/vm: move bls precompiles to correct addresses (#29445)
cuiweixie Apr 9, 2024
1126c6d
core: add txlookup lock (#29343)
rjl493456442 Apr 9, 2024
0bbd88b
all: use timer instead of time.After in loops, to avoid memleaks (#29…
songzhibin97 Apr 9, 2024
f202dfd
core/tracing: add changelog (#29388)
s1na Apr 9, 2024
34aac1d
all: use big.Sign to compare with zero (#29490)
AaronChen0 Apr 9, 2024
9dcf8aa
eth/protocols/snap: skip retrieval for completed storages (#29378)
rjl493456442 Apr 10, 2024
b9010f3
rpc: fix comment grammar (#29507)
Newt6611 Apr 11, 2024
bd91810
cmd: fix some typos in readmes (#29405)
ForestKeeperIO Apr 11, 2024
b179b7b
all: remove duplicate word in comments (#29531)
Abirdcfly Apr 15, 2024
3705acd
cmd/utils: fix typo in comment (#29528)
yudrywet Apr 15, 2024
84b12df
core/rawdb: add sanity-limit to header accessor (#29534)
holiman Apr 15, 2024
67422e2
p2p/nat: fix typos in comments (#29536)
dbadoy Apr 15, 2024
ef5ac3f
eth/filters: enforce topic-limit early on filter criterias (#29535)
holiman Apr 15, 2024
d3c4466
core, eth/protocols/snap, trie: fix cause for snap-sync corruption, i…
rjl493456442 Apr 16, 2024
e4ecaf8
rpc: implement Unwrap() for wsHandshakeError (#29522)
sucramx Apr 16, 2024
71c78bf
rpc: close Clients in tests (#29512)
darioush Apr 16, 2024
f437307
core/vm: update gascosts for BLS12-381 + use gnark instead of kilic (…
MariusVanDerWijden Apr 16, 2024
fadd9d8
eth/catalyst: fix log (#29549)
Apr 16, 2024
72f6936
c.d/utils: rename vmtrace.config to vmtrace.jsonconfig (#29554)
ziogaschr Apr 16, 2024
65e32d4
go.mod: clean up indirection (#29553)
ucwong Apr 16, 2024
5ffd940
core: go fmt (#29544)
ucwong Apr 16, 2024
0a51028
all: fix various typos (#29542)
persmor Apr 16, 2024
92da96b
core/vm: refactor push-functions to use `min` builtin (#29515)
itsdevbear Apr 16, 2024
27de7de
ethdb/pebble: print warning log if pebble performance degrades (#29478)
rjl493456442 Apr 17, 2024
74e8d2d
trie/utils: simplify codeChunkIndex (#29480)
AaronChen0 Apr 17, 2024
1e9bf2a
core/state: fix bug in statedb.Copy and remove unnecessary preallocat…
AaronChen0 Apr 17, 2024
0da69e8
beacon/blsync: proceed with empty finalized hash if proof is not expe…
zsfelfoldi Apr 17, 2024
5f95145
eth/ethconfig: regenerate autogen files (#29559)
ucwong Apr 18, 2024
b5902cf
core: remove unused fields (#29569)
rjl493456442 Apr 18, 2024
823719b
core/vm: enable bls-precompiles for Prague (#29552)
holiman Apr 18, 2024
81349ff
eth/catalyst: fix typo (#29580)
pengwenhui888 Apr 19, 2024
cce879b
tests: define cancun-to-prague at 15K chainconig (#29557)
marioevz Apr 19, 2024
2e06fbd
core/vm: add KZG benchmark (#29583)
MariusVanDerWijden Apr 19, 2024
98f504f
p2p/discover: fix test error messages (#29592)
bugmaker9371 Apr 21, 2024
28ccb2b
build: fix string compare for SortFunc (#29595)
AaronChen0 Apr 21, 2024
ad3d8cb
cmd/geth: remove unused parameter (#29602)
javaandfly Apr 22, 2024
82b0dec
eth/filters: remove support for pending logs (#29574)
fjl Apr 22, 2024
c2dfe7a
go.mod: update golang/x repos (#29604)
karalabe Apr 22, 2024
1ec7af2
eth: Add eth_blobBaseFee RPC and blob fields to eth_feeHistory (#29140)
ryanschneider Apr 22, 2024
e6689fe
beacon/light/sync: print error log if checkpoint retrieval fails (#29…
zsfelfoldi Apr 22, 2024
acd1eaa
core: remove bad block checks (#29609)
rjl493456442 Apr 22, 2024
853e0c2
eth/catalyst, trie/pathdb: fix flaky tests (#29571)
holiman Apr 23, 2024
0e380dd
miner: fix typos (#29625)
0xmountaintop Apr 23, 2024
709e0b3
metrics: remove librato (#29624)
AaronChen0 Apr 23, 2024
b2b0e1d
all: fix various typos (#29600)
hr98w Apr 23, 2024
256d4b0
beacon/light: request finality update explicitly when necessary (#29567)
zsfelfoldi Apr 23, 2024
9457993
core/vm: fix Prague contracts (#29612)
marioevz Apr 23, 2024
882d1e2
cmd/geth, cmd/utils: rename config and flag to` VMTraceJsonConfig` (#…
ziogaschr Apr 24, 2024
fb08fd3
core/tracing: Add OnClose Trace Hook (#29629)
ziogaschr Apr 24, 2024
ade7515
eth, eth/tracers: process beacon root before transactions (#29402)
maoueh Apr 24, 2024
5f3c58f
eth/downloader: fix case where skeleton reorgs below the filled block…
jwasinger Apr 24, 2024
87246f3
params: release Geth v1.14.0
karalabe Apr 24, 2024
25edc13
cmd/geth/testdata,consensus,core,eth,eth/catalyst,eth/ethconfig,eth/f…
ziogaschr Jun 12, 2024
b28312d
core,core/rawdb: Revert "core: use finalized block as the chain freez…
ziogaschr Jun 12, 2024
7670fc7
cmd/geth,cmd/utils,consensus,console,eth,eth/catalyst,eth/filters,eth…
ziogaschr Jun 18, 2024
6eac15f
core: Revert "core: remove unused code (#29381)"
ziogaschr Jun 18, 2024
11a9870
miner: too many arguments in call to w.engine.FinalizeAndAssemble
ziogaschr Jun 18, 2024
c46ed47
eth/filters: undefined: lightMode
ziogaschr Jun 18, 2024
0f5494e
cmd/utils,eth/filters,ethclient/gethclient,ethclient/simulated: Rever…
ziogaschr Jun 18, 2024
97f6432
cmd/utils: cmd/utils: remove miner flags from deprecated list (duplic…
ziogaschr Jun 18, 2024
835d924
eth,miner: assignment mismatch: 2 variables but b.eth.miner.Pending r…
ziogaschr Jun 18, 2024
674b86d
internal/ethapi: cannot use backend (variable of type *testBackend) a…
ziogaschr Jun 18, 2024
b3e375c
cmd/geth: Revert "cmd/geth: remove unused parameter (#29602)"
ziogaschr Jun 18, 2024
8eaeb5b
internal/ethapi: cannot use b (variable of type *backendMock) as Back…
ziogaschr Jun 18, 2024
cb3e345
eth/filters: func `includes` is unused (unused)
ziogaschr Jun 18, 2024
9223636
eth/filters: remove TestLightFilterLogs
ziogaschr Jun 18, 2024
3a25b7a
Merge branch 'foundation/v1.14.0-reverted'
meowsbits Jun 19, 2024
1ea7d51
all: auto format by IDE
meowsbits Jun 19, 2024
ff13145
go.mod,go.sum: go mod tidy
meowsbits Jun 19, 2024
91360c5
core/tracing,eth/tracers/live: undefined: params.ChainConfig (typecheck)
ziogaschr Jun 19, 2024
0a3918d
core/state: imported and not used
ziogaschr Jun 19, 2024
0f4b0ba
core/vm,eth/tracers/internal/tracetest:temp: disable state_diff trace…
ziogaschr Jun 19, 2024
5e719c0
core/vm: undefined: params.CallCreateDepth
ziogaschr Jun 19, 2024
f4ffb17
core/vm: evm.chainRules undefined (type *EVM has no field or method c…
ziogaschr Jun 19, 2024
1f58dc9
cmd/utils: move light flags in deprecated
ziogaschr Jun 19, 2024
11ce4d7
params/mutations: undefined: params.DAODrainList; undefined: params.D…
ziogaschr Jun 19, 2024
a788e0c
params/mutations: not enough arguments in call to state.AddBalance
ziogaschr Jun 19, 2024
cb27d4a
consensus/ethash: cannot use slog.LevelWarn (constant 4 of type "gola…
ziogaschr Jun 19, 2024
443bde4
core/vm: not enough arguments in call to db.AddBalance
ziogaschr Jun 19, 2024
a75911d
consensus/lyra2: not enough arguments in call to state.AddBalance
ziogaschr Jun 19, 2024
f3f3c37
cmd/evm/internal/t8ntool: undefined: params.GWei (typecheck)
ziogaschr Jun 19, 2024
70c303d
core/vm,eth/tracers/js,eth/tracers/native: env.ChainConfig.Rules unde…
ziogaschr Jun 19, 2024
ac7912e
eth/tracers,eth/tracers/internal/tracetest: drop call_parity tracer i…
ziogaschr Jun 19, 2024
e8a5536
consensus/lyra2: cannot use lyra2.New(lyra2Config, notify, noverify) …
ziogaschr Jun 19, 2024
f39ef20
eth/tracers/native: add parityErrorMapping in call_flat.go
ziogaschr Jun 19, 2024
4d7f9ab
consensus/lyra2: cannot use lyra2.New(lyra2Config, notify, noverify) …
ziogaschr Jun 19, 2024
4f15559
: remove core/gen_genesis.go as we moved it in params/types/genesisT
ziogaschr Jun 19, 2024
cff9d17
core/vm/runtime: use vm.ActivePrecompiles()
ziogaschr Jun 19, 2024
179e4f1
core: undefined: params.ChainConfig
ziogaschr Jun 19, 2024
099f6e8
core: undefined: Genesis
ziogaschr Jun 19, 2024
0511a1b
core: undefined: params
ziogaschr Jun 19, 2024
1774238
core: undefined: crand
ziogaschr Jun 19, 2024
e288258
eth/gasprice: gspec.Config.ChainID undefined
meowsbits Jun 19, 2024
7a5c58c
eth/gasprice: undefined: params.GWei
meowsbits Jun 19, 2024
a3fe321
eth/gasprice: undefined: td
meowsbits Jun 19, 2024
beea61c
internal/ethapi: b.ChainConfig().ChainID undefined
meowsbits Jun 19, 2024
fc9a0df
internal/ethapi: isPostMerge declared and not used
meowsbits Jun 19, 2024
b6897b3
eth: Unresolved reference 'ChainID'
meowsbits Jun 19, 2024
46e54d5
core/vm/runtime: vmenv.ActivePrecompiles undefined
meowsbits Jun 19, 2024
2de4ca7
cmd/evm: undefined: testFork
meowsbits Jun 19, 2024
0bed0b9
core: st.evm.ActivePrecompiles undefined
meowsbits Jun 19, 2024
c383842
core: config.IsEIP158 undefined
meowsbits Jun 19, 2024
c3aedb0
core: undefined: getGenesisState
meowsbits Jun 19, 2024
d6f9821
core: undefined: BadHashes
ziogaschr Jun 20, 2024
44dbbc6
internal/flags: undefined: flags.EthashCategory (typecheck)
ziogaschr Jun 20, 2024
c33b7d0
tests: invalid composite literal type ctypes.ChainConfigurator
ziogaschr Jun 20, 2024
bbb70fd
eth/tracers/live: cannot use t.OnGenesisBlock (value of type func(b *…
ziogaschr Jun 20, 2024
61272c2
core: undefined: ErrBannedHash
ziogaschr Jun 20, 2024
9e7a143
core: undefined: Genesis and GenesisAlloc and GenesisAccount
ziogaschr Jun 20, 2024
43debdf
tests: evm.ActivePrecompiles undefined
meowsbits Jun 21, 2024
f001cf1
eth/tracers/internal/tracetest: undefined: core.Genesis
meowsbits Jun 21, 2024
e2041ed
eth/filters: undefined: core.Genesis
meowsbits Jun 21, 2024
79dfbc1
p2p: undefined: nodeAddr
meowsbits Jun 21, 2024
cfd16d6
eth/filters: notifier.Closed undefined (type *rpc.Notifier has no fie…
meowsbits Jun 21, 2024
0a1d6da
eth/tracers: api.debugAPI.TraceCallMany undefined (type *API has no f…
meowsbits Jun 21, 2024
eb11327
eth/tracers/js: cannot use tracer.Tracer as type *tracer.Tracer
meowsbits Jun 25, 2024
274d1b3
core/tracing,eth/tracers/internal/tracetest,eth/tracers/native: fix s…
ziogaschr Jul 22, 2024
75aa052
core: fix import
ziogaschr Jul 22, 2024
6802bbf
core: undefined: params.EthashConfig,params.TxGas
meowsbits Jul 22, 2024
ae79640
core: fix TestBadHeaderHashes
meowsbits Jul 23, 2024
2079278
ethclient: fix TestRPCDiscover over/under
meowsbits Jul 23, 2024
1695ffd
params: not enough arguments in call to statedb.AddBalance
meowsbits Jul 23, 2024
b7d81dc
miner: fix TestStreamUncleBlock in worker_test.go
meowsbits Jul 23, 2024
5195528
eth/tracers/native: eth/tracers/native: more work on state_diff tracer
ziogaschr Jul 23, 2024
9b167b3
eth/tracers: fix trace config for TraceCall
ziogaschr Jul 23, 2024
666f3e9
core: refactor only: reorder operations to match upstream
meowsbits Jul 23, 2024
6274fff
internal/ethapi: THE FIX: install optional fields for RPC header mars…
meowsbits Jul 31, 2024
0234273
eth/tracers/native: "fmt" imported and not used
meowsbits Jul 31, 2024
f55a98b
params/types/coregeth,params/types/goethereum: params/types/coregeth:…
ziogaschr Aug 9, 2024
6aa136c
tests: bump tests submodule to upstream@master
meowsbits Aug 7, 2024
b967e63
core/vm: fix BLS precomp addresses
meowsbits Aug 7, 2024
68cb156
core/vm: use 0x0-prefixed precomp addresses
meowsbits Aug 7, 2024
0f91cc2
core/vm: FIX precompiled addrs -> ACL
meowsbits Aug 13, 2024
08cc08f
tests: use testdata at fa51c5c164f79140730ccb8fe26a46c3d3994338 :: v1…
meowsbits Aug 13, 2024
10c6d5b
eth/filters: fix TestPendingLogsSubscription
meowsbits Aug 14, 2024
d48d06c
eth/gasprice: fix TestFeeHistory
meowsbits Aug 14, 2024
b1ebe4d
core/vm: core/vm: fix captureEnd wrong condition after merge for pre-…
ziogaschr Aug 14, 2024
15fd377
params: File is not `goimports`-ed (goimports)
meowsbits Aug 19, 2024
2267047
core: File is not `goimports`-ed (goimports)
meowsbits Aug 19, 2024
9661f0d
eth/filters: SA4010: this result of append is never used, except mayb…
meowsbits Aug 19, 2024
36c82ce
eth/tracers/internal/tracetest,eth/tracers/native: (lint) remove unus…
meowsbits Aug 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Diederik Loerakker <[email protected]>
Dimitry Khokhlov <[email protected]>

Domino Valdano <[email protected]>
Domino Valdano <[email protected]> <[email protected]>

Edgar Aroutiounian <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
EXPOSE 8545 8546 30303 30303/udp
ENTRYPOINT ["geth"]

# Add some metadata labels to help programatic image consumption
# Add some metadata labels to help programmatic image consumption
ARG COMMIT=""
ARG VERSION=""
ARG BUILDNUM=""
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.alltools
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/

EXPOSE 8545 8546 30303 30303/udp

# Add some metadata labels to help programatic image consumption
# Add some metadata labels to help programmatic image consumption
ARG COMMIT=""
ARG VERSION=""
ARG BUILDNUM=""
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.

.PHONY: geth android ios geth-cross evm evmc mkdocs-serve all test clean
.PHONY: geth android ios geth-cross evm evmc mkdocs-serve all test lint clean devtools help

GOBIN = ./build/bin
GO ?= latest
Expand Down Expand Up @@ -125,4 +125,3 @@ devtools:
help: Makefile
@echo " Choose a command run in go-ethereum:"
@sed -n 's/^#?//p' $< | column -t -s ':' | sort | sed -e 's/^/ /'
.PHONY: help
2 changes: 1 addition & 1 deletion accounts/abi/argument.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (arguments Arguments) Copy(v interface{}, values []interface{}) error {
return arguments.copyAtomic(v, values[0])
}

// unpackAtomic unpacks ( hexdata -> go ) a single value
// copyAtomic copies ( hexdata -> go ) a single value
func (arguments Arguments) copyAtomic(v interface{}, marshalledValues interface{}) error {
dst := reflect.ValueOf(v).Elem()
src := reflect.ValueOf(marshalledValues)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accou
// NewKeyedTransactorWithChainID is a utility method to easily create a transaction signer
// from a single private key.
func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*TransactOpts, error) {
keyAddr := crypto.PubkeyToAddress(key.PublicKey)
if chainID == nil {
return nil, ErrNoChainID
}
keyAddr := crypto.PubkeyToAddress(key.PublicKey)
signer := types.LatestSignerForChainID(chainID)
return &TransactOpts{
From: keyAddr,
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
if err != nil {
return nil, nil, err
}
sub, err := event.NewSubscription(func(quit <-chan struct{}) error {
sub := event.NewSubscription(func(quit <-chan struct{}) error {
for _, log := range buff {
select {
case logs <- log:
Expand All @@ -470,9 +470,9 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
}
}
return nil
}), nil
})

return logs, sub, err
return logs, sub, nil
}

// WatchLogs filters subscribes to contract logs for future blocks, returning a
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"
)

// ConvertType converts an interface of a runtime type into a interface of the
// ConvertType converts an interface of a runtime type into an interface of the
// given type, e.g. turn this code:
//
// var fields []reflect.StructField
Expand All @@ -33,7 +33,7 @@ import (
// Name: "X",
// Type: reflect.TypeOf(new(big.Int)),
// Tag: reflect.StructTag("json:\"" + "x" + "\""),
// }
// })
//
// into:
//
Expand Down
3 changes: 0 additions & 3 deletions accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
return Type{}, errors.New("abi: purely anonymous or underscored field is not supported")
}
fieldName := ResolveNameConflict(name, func(s string) bool { return used[s] })
if err != nil {
return Type{}, err
}
used[fieldName] = true
if !isValidFieldName(fieldName) {
return Type{}, fmt.Errorf("field %d has invalid name", idx)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/common"
)

// typeWithoutStringer is a alias for the Type type which simply doesn't implement
// typeWithoutStringer is an alias for the Type type which simply doesn't implement
// the stringer interface to allow printing type details in the tests below.
type typeWithoutStringer Type

Expand Down
2 changes: 1 addition & 1 deletion accounts/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func TextHash(data []byte) []byte {
//
// This gives context to the signed message and prevents signing of transactions.
func TextAndHash(data []byte) ([]byte, string) {
msg := fmt.Sprintf("\x19Ethereum Signed Message:\n%d%s", len(data), string(data))
msg := fmt.Sprintf("\x19Ethereum Signed Message:\n%d%s", len(data), data)
hasher := sha3.NewLegacyKeccak256()
hasher.Write([]byte(msg))
return hasher.Sum(nil), msg
Expand Down
15 changes: 13 additions & 2 deletions accounts/external/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (api *ExternalSigner) SignTx(account accounts.Account, tx *types.Transactio
to = &t
}
args := &apitypes.SendTxArgs{
Data: &data,
Input: &data,
Nonce: hexutil.Uint64(tx.Nonce()),
Value: hexutil.Big(*tx.Value()),
Gas: hexutil.Uint64(tx.Gas()),
Expand All @@ -215,7 +215,7 @@ func (api *ExternalSigner) SignTx(account accounts.Account, tx *types.Transactio
switch tx.Type() {
case types.LegacyTxType, types.AccessListTxType:
args.GasPrice = (*hexutil.Big)(tx.GasPrice())
case types.DynamicFeeTxType:
case types.DynamicFeeTxType, types.BlobTxType:
args.MaxFeePerGas = (*hexutil.Big)(tx.GasFeeCap())
args.MaxPriorityFeePerGas = (*hexutil.Big)(tx.GasTipCap())
default:
Expand All @@ -235,6 +235,17 @@ func (api *ExternalSigner) SignTx(account accounts.Account, tx *types.Transactio
accessList := tx.AccessList()
args.AccessList = &accessList
}
if tx.Type() == types.BlobTxType {
args.BlobHashes = tx.BlobHashes()
sidecar := tx.BlobTxSidecar()
if sidecar == nil {
return nil, errors.New("blobs must be present for signing")
}
args.Blobs = sidecar.Blobs
args.Commitments = sidecar.Commitments
args.Proofs = sidecar.Proofs
}

var res signTransactionResult
if err := api.client.Call(&res, "account_signTransaction", args); err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion accounts/keystore/account_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"fmt"
"os"
"path/filepath"
"slices"
"sort"
"strings"
"sync"
Expand All @@ -31,7 +32,6 @@ import (
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"golang.org/x/exp/slices"
)

// Minimum amount of time between cache reloads. This limit applies if the platform does
Expand Down
6 changes: 3 additions & 3 deletions accounts/keystore/account_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ import (
"os"
"path/filepath"
"reflect"
"slices"
"testing"
"time"

"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"golang.org/x/exp/slices"
)

var (
Expand All @@ -51,7 +51,7 @@ var (
}
)

// waitWatcherStarts waits up to 1s for the keystore watcher to start.
// waitWatcherStart waits up to 1s for the keystore watcher to start.
func waitWatcherStart(ks *KeyStore) bool {
// On systems where file watch is not supported, just return "ok".
if !ks.cache.watcher.enabled() {
Expand Down Expand Up @@ -86,7 +86,7 @@ func waitForAccounts(wantAccounts []accounts.Account, ks *KeyStore) error {
func TestWatchNewFile(t *testing.T) {
t.Parallel()

dir, ks := tmpKeyStore(t, false)
dir, ks := tmpKeyStore(t)

// Ensure the watcher is started before adding any files.
ks.Accounts()
Expand Down
13 changes: 1 addition & 12 deletions accounts/keystore/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,6 @@ func NewKeyStore(keydir string, scryptN, scryptP int) *KeyStore {
return ks
}

// NewPlaintextKeyStore creates a keystore for the given directory.
// Deprecated: Use NewKeyStore.
func NewPlaintextKeyStore(keydir string) *KeyStore {
keydir, _ = filepath.Abs(keydir)
ks := &KeyStore{storage: &keyStorePlain{keydir}}
ks.init(keydir)
return ks
}

func (ks *KeyStore) init(keydir string) {
// Lock the mutex since the account cache might call back with events
ks.mu.Lock()
Expand Down Expand Up @@ -509,7 +500,5 @@ func (ks *KeyStore) isUpdating() bool {
// zeroKey zeroes a private key in memory.
func zeroKey(k *ecdsa.PrivateKey) {
b := k.D.Bits()
for i := range b {
b[i] = 0
}
clear(b)
}
40 changes: 18 additions & 22 deletions accounts/keystore/keystore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"math/rand"
"os"
"runtime"
"slices"
"strings"
"sync"
"sync/atomic"
Expand All @@ -30,14 +31,13 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/event"
"golang.org/x/exp/slices"
)

var testSigData = make([]byte, 32)

func TestKeyStore(t *testing.T) {
t.Parallel()
dir, ks := tmpKeyStore(t, true)
dir, ks := tmpKeyStore(t)

a, err := ks.NewAccount("foo")
if err != nil {
Expand Down Expand Up @@ -72,7 +72,7 @@ func TestKeyStore(t *testing.T) {

func TestSign(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, true)
_, ks := tmpKeyStore(t)

pass := "" // not used but required by API
a1, err := ks.NewAccount(pass)
Expand All @@ -89,7 +89,7 @@ func TestSign(t *testing.T) {

func TestSignWithPassphrase(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, true)
_, ks := tmpKeyStore(t)

pass := "passwd"
acc, err := ks.NewAccount(pass)
Expand Down Expand Up @@ -117,7 +117,7 @@ func TestSignWithPassphrase(t *testing.T) {

func TestTimedUnlock(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, true)
_, ks := tmpKeyStore(t)

pass := "foo"
a1, err := ks.NewAccount(pass)
Expand Down Expand Up @@ -152,7 +152,7 @@ func TestTimedUnlock(t *testing.T) {

func TestOverrideUnlock(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, false)
_, ks := tmpKeyStore(t)

pass := "foo"
a1, err := ks.NewAccount(pass)
Expand Down Expand Up @@ -193,7 +193,7 @@ func TestOverrideUnlock(t *testing.T) {
// This test should fail under -race if signing races the expiration goroutine.
func TestSignRace(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, false)
_, ks := tmpKeyStore(t)

// Create a test account.
a1, err := ks.NewAccount("")
Expand Down Expand Up @@ -238,7 +238,7 @@ func waitForKsUpdating(t *testing.T, ks *KeyStore, wantStatus bool, maxTime time
func TestWalletNotifierLifecycle(t *testing.T) {
t.Parallel()
// Create a temporary keystore to test with
_, ks := tmpKeyStore(t, false)
_, ks := tmpKeyStore(t)

// Ensure that the notification updater is not running yet
time.Sleep(250 * time.Millisecond)
Expand Down Expand Up @@ -284,7 +284,7 @@ type walletEvent struct {
// or deleted from the keystore.
func TestWalletNotifications(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, false)
_, ks := tmpKeyStore(t)

// Subscribe to the wallet feed and collect events.
var (
Expand Down Expand Up @@ -343,10 +343,10 @@ func TestWalletNotifications(t *testing.T) {
checkEvents(t, wantEvents, events)
}

// TestImportExport tests the import functionality of a keystore.
// TestImportECDSA tests the import functionality of a keystore.
func TestImportECDSA(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, true)
_, ks := tmpKeyStore(t)
key, err := crypto.GenerateKey()
if err != nil {
t.Fatalf("failed to generate key: %v", key)
Expand All @@ -362,10 +362,10 @@ func TestImportECDSA(t *testing.T) {
}
}

// TestImportECDSA tests the import and export functionality of a keystore.
// TestImportExport tests the import and export functionality of a keystore.
func TestImportExport(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, true)
_, ks := tmpKeyStore(t)
acc, err := ks.NewAccount("old")
if err != nil {
t.Fatalf("failed to create account: %v", acc)
Expand All @@ -374,7 +374,7 @@ func TestImportExport(t *testing.T) {
if err != nil {
t.Fatalf("failed to export account: %v", acc)
}
_, ks2 := tmpKeyStore(t, true)
_, ks2 := tmpKeyStore(t)
if _, err = ks2.Import(json, "old", "old"); err == nil {
t.Errorf("importing with invalid password succeeded")
}
Expand All @@ -394,7 +394,7 @@ func TestImportExport(t *testing.T) {
// This test should fail under -race if importing races.
func TestImportRace(t *testing.T) {
t.Parallel()
_, ks := tmpKeyStore(t, true)
_, ks := tmpKeyStore(t)
acc, err := ks.NewAccount("old")
if err != nil {
t.Fatalf("failed to create account: %v", acc)
Expand All @@ -403,7 +403,7 @@ func TestImportRace(t *testing.T) {
if err != nil {
t.Fatalf("failed to export account: %v", acc)
}
_, ks2 := tmpKeyStore(t, true)
_, ks2 := tmpKeyStore(t)
var atom atomic.Uint32
var wg sync.WaitGroup
wg.Add(2)
Expand Down Expand Up @@ -457,11 +457,7 @@ func checkEvents(t *testing.T, want []walletEvent, have []walletEvent) {
}
}

func tmpKeyStore(t *testing.T, encrypted bool) (string, *KeyStore) {
func tmpKeyStore(t *testing.T) (string, *KeyStore) {
d := t.TempDir()
newKs := NewPlaintextKeyStore
if encrypted {
newKs = func(kd string) *KeyStore { return NewKeyStore(kd, veryLightScryptN, veryLightScryptP) }
}
return d, newKs(d)
return d, NewKeyStore(d, veryLightScryptN, veryLightScryptP)
}
Loading
Loading