Commit graph

16087 commits

Author SHA1 Message Date
Matthieu Vachon
cda538007c Merge branch 'firehose-fh3.0' into release/geth-1.x-fh3.0 2025-02-25 15:18:01 -05:00
Matthieu Vachon
06b7c4bb3a Make firehose the default value for vmtrace in our fork 2025-02-25 15:17:47 -05:00
Matthieu Vachon
fbf699a4c8 Merge tag 'v1.15.3' into release/geth-1.x-fh3.0 2025-02-25 15:11:00 -05:00
Matthieu Vachon
a51126d97f Brought back README.fh.md from Firehose 2.4 branch 2025-02-25 14:52:15 -05:00
Felix Lange
612c9e0f4a version: release go-ethereum v1.15.3 stable 2025-02-25 16:18:34 +01:00
Shude Li
756310fa43
eth/protocols/eth: fix loading "eth" ENR key in dial filter (#31251)
This fixes an issue where dial candidates from discv5 would be ignored
because the "eth" ENR entry was not loaded correctly.
2025-02-25 13:40:57 +01:00
jwasinger
f6883431c2
ethclient/simulated: add goroutine leak test (#31033)
Adds a basic sanity test case to catch any go-routines leaked from
instantiation/closing of a simulated backend.
2025-02-25 12:21:35 +01:00
Matthieu Vachon
7963c2b27d Removed uneeded priority=1000 (since we lowered edge one instead) 2025-02-24 20:11:43 -05:00
Matthieu Vachon
72f9828339 Decreases 'edge' priority so OCI label 'version' is taken from ref first and sha second 2025-02-24 20:10:35 -05:00
Marius van der Wijden
c93baac6cc params: add deposit contract addresses (#31247)
We forgot to add the deposit contract address for holesky, causing
deposits to not be flagged correctly

---------

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2025-02-24 19:56:05 -05:00
Matthieu Vachon
5eea0a8b10 Seems we need full versions for Docker metadata otherwise the final version labels is wrong 2025-02-24 18:50:52 -05:00
Marius van der Wijden
7d8aca95d2
params: add deposit contract addresses (#31247)
We forgot to add the deposit contract address for holesky, causing
deposits to not be flagged correctly

---------

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2025-02-25 00:42:00 +01:00
rjl493456442
9211a0e3ec
core/txpool: move setcode tx validation into legacyPool (#31209)
In this PR, several improvements have been made:

Authorization-related validations have been moved to legacyPool. 
Previously, these checks were part of the standard validation procedure,
which applies common validations across different pools. Since these 
checks are specific to SetCode transactions, relocating them to
legacyPool
is a more reasonable choice.

Additionally, authorization conflict checks are now performed regardless
of whether the transaction is a replacement or not.

---------

Co-authored-by: lightclient <lightclient@protonmail.com>
2025-02-24 14:17:21 -07:00
Matthieu Vachon
c667ec8c04 Finish release process 2025-02-24 10:32:13 -05:00
Marius van der Wijden
fbe0005070
crypto: add comment to FromECDSAPub (#31241)
closes https://github.com/ethereum/go-ethereum/issues/26240
2025-02-24 12:23:25 +01:00
Marius van der Wijden
a0e6381c48
go.mod: update cloudflare-go (#31240)
Updates cloudflare-go from v0.79.0 to v0.114.0 which also gets rid of a
dependency to `github.com/hashicorp/go-retryablehttp` which had a
security flaw.

Diff:
https://github.com/cloudflare/cloudflare-go/compare/v0.79.0...v0.114.0

I did a quick sanity check on the diff on all methods that we use and
went through the release notes, there was nothing related to how we use
it afaict
2025-02-24 10:31:33 +01:00
Felix Lange
9e6f924671
eth: report error from setupDiscovery at startup (#31233)
I ran into this while trying to debug a discv5 thing. I tried to disable
DNS discovery using `--discovery.dns=false`, which doesn't work.
Annoyingly, geth started anyway and discarded the error silently. I
eventually found my mistake, but it took way longer than it should have.

Also including a small change to the error message for invalid DNS URLs
here. The user actually needs to see the URL to make sense of the error.
2025-02-23 17:38:32 +01:00
Matthieu Vachon
6f6702c591 Remove release notes for now and trying fixing double geth- prefix in Docker tag release 2025-02-22 22:13:47 -05:00
Matthieu Vachon
9217c9e6c5 Move release to it's own job 2025-02-22 22:05:35 -05:00
Matthieu Vachon
4c77c2bc05 Adjusted where we copy files over 2025-02-22 21:53:33 -05:00
Matthieu Vachon
25fdf6fc65 Added release handling on tags 2025-02-22 21:47:20 -05:00
Matthieu Vachon
b8fd5d0486 Fixing docker rleease 2025-02-22 21:27:38 -05:00
Matthieu Vachon
cc698453f8 Backward compatibility now stops at Prague hard-fork 2025-02-21 20:36:32 -05:00
Matthieu Vachon
d444c54548 Fixed wrong assumption about SelfDestruct having only at max one withdraw balance change
It appears a self destruct can really lead to 3 balance changes, 2 of which are withdraw of the money if the contract being self destructed and the self destruct beneficiary are the same.

We thought it was a bug in the Geth tracing API but it appears it's not and we must actually correctly handle that when fixing up balance changes. So we now support the case where there is 2 withdraws, in this case, the old Firehose 2.x was only ever keeping the last one, so we can simply filter it out of the changes to retain backward compatibility.
2025-02-21 16:49:38 -05:00
Matthieu Vachon
bbcf323c96 Small refactor to re-use isChainIDOneOf function 2025-02-21 11:34:37 -05:00
Matthieu Vachon
1b285b8c81 Added tests to ensure we covers balance and gas change correctly 2025-02-21 11:31:32 -05:00
Matthieu Vachon
66d5c7ee57 Added generated stringer for GasChangeReason enum 2025-02-21 11:13:24 -05:00
levisyin
d103f179b9
build: replace tenv linter with usetesting (#31172) 2025-02-21 13:36:18 +01:00
Maximilian Hubert
cb9653d253
cmd/clef: improve documentation in readme (#31218)
Fixed broken or outdated links and improved documentation formatting to
ensure consistency and correct references.

---------

Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
2025-02-21 11:45:02 +01:00
Sina M
8a14362bf7
internal/ethapi: fix prev hashes in eth_simulate (#31122)
Shout-out to @Gabriel-Trintinalia for discovering this issue. The gist
of it as follows:

When processing a block, we should provide the parent block as well as
the last 256 block hashes. Some of these parents data (specifically the
hash) was incorrect because even though during the processing of the
parent block we have updated the header, that header was not updating
the TransactionsRoot and ReceiptsRoot fields (types.NewBlock makes a new
copy of the header and changes it only on that instance).

---------

Co-authored-by: lightclient <lightclient@protonmail.com>
2025-02-21 09:52:55 +01:00
jwasinger
5552ada486
signer/core: fix encoding of bytes nested within array (#31049)
Fixes an incorrect encoding of recursive bytes types.
closes https://github.com/ethereum/go-ethereum/issues/30979
2025-02-21 09:48:24 +01:00
rrhlrmrr
53e8e1fdf2
core/types: remove unneeded todo marker (#31179) 2025-02-21 13:45:29 +08:00
Felix Lange
2a81bbaa4f
p2p/nat: remove test with default servers (#31225)
The test occasionally fails when network connectivity is bad or if it
hits the wrong server. We usually don't add tests with external network
dependency so I'm removing them.

Fixes #31220
2025-02-21 10:42:54 +08:00
Matthieu Vachon
95a7b396a8 Fixed backward compatibility ordinals wrongly re-ordered in Firehose
At some point in the Firehose 2.x release lifecycle, a bug was introduced that caused
ordinals within the block to be broken. The problem was that system calls and block level balance changes
were done using a block level ordinals and transactions were done using their own level ordinals.

Then in the console reader, the ordinals were re-ordered correctly. While block level balance changes
were re-ordered correctly, the system calls were not.

Here, we re-apply the same bug to the transactions to ensure that the Firehose 3.x release lifecycle.
First, we are going to reset the ordinal once we detect this is the first transaction.
Then in the end block, we are going to fix balance & code changes ordinals.
2025-02-20 19:31:10 -05:00
Matthieu Vachon
56ff050d95 Normalized golden Firehose JSON tests 2025-02-20 19:24:51 -05:00
Matthieu Vachon
299fd9600e Merge tag 'v1.15.2' into firehose-fh3.0 2025-02-20 12:56:47 -05:00
Martin HS
301a868d28
oss-fuzz: remove deprecated targets (#31224)
Fixes https://github.com/ethereum/go-ethereum/issues/31223

(sorry, I thought the fork fork would be created on my repo, not
upstream, when I used the GH editor)
2025-02-20 18:46:25 +01:00
Matthieu Vachon
e2a3cfbf4c Fixed ordinals and account creations differences on system calls 2025-02-20 10:21:58 -05:00
Matthieu Vachon
69a64b2b78 Removed prev in OnNewAccount as it was unsued 2025-02-20 10:19:05 -05:00
Delweng
dcc0b3704d
eth/tracers: refactor block context in test runner (#29450)
This commit contains a minor refactoring of the block context
used within the test runners.

---------

Signed-off-by: jsvisa <delweng@gmail.com>
2025-02-20 15:04:35 +01:00
nethoxa
b1f88ef9bd
internal/ethapi: handle prague system calls in eth_simulate (#31176)
eth_simulate was not processing prague system calls for history contract and EL
requests resulting in inaccurate stateRoot and requestsRoot fields in the block.
2025-02-20 14:30:55 +01:00
Marius van der Wijden
c8781be762
core/txpool/legacypool: add setCodeTx reorg test (#31206)
This PR adds a test that makes sure that a node can send multiple
transactions again once a authorization is removed
2025-02-20 20:11:48 +08:00
Sina M
67cd4cd5a1
.github: downgrade go for lint step (#31217) 2025-02-20 10:27:13 +01:00
Matthieu Vachon
b20db144a2 Added greater support for SetCode transactions 2025-02-19 15:51:20 -05:00
Felix Lange
aac621987e
core/asm: delete assembler/disassembler (#31211)
I maintain an improved version of the go-ethereum assembler at
https://github.com/fjl/geas. We don't really use core/asm in our tests,
and it has some bugs that prevent it from being useful, so I'm removing
the package.
2025-02-19 06:57:08 -07:00
levisyin
07d7fe2b33
build: upgrade -dlgo version to Go 1.24.0 (#31159)
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-02-19 11:21:22 +01:00
Matthieu Vachon
dab746b3ef
eth/catalyst: support earlier forks in SimulatedBeacon (#31084)
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2025-02-18 21:08:43 +01:00
Marius van der Wijden
ef00a6e9a2
params: add osaka blob schedule (#31174)
Prevents crashes when running execution spec tests for osaka
2025-02-18 15:03:48 +01:00
rjl493456442
32c6aa8a1a
core/vm: clean up EVM environmental structure (#31061)
This PR does a few things including:

- Remove `ContractRef` interface
- Remove `vm.AccountRef` which implements `ContractRef` interface
- Maintain the `jumpDests` struct in EVM for sharing between call frames
- Simplify the delegateCall context initialization
2025-02-18 21:53:33 +08:00
EdisonSR
7332a1bc0a
ethclient: add comment describing block number tags (#30984)
Adds a comment on how to use rpc.*BlockNumber and the explanation of the block number tags

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-02-18 11:15:36 +01:00