Commit graph

17838 commits

Author SHA1 Message Date
Guillaume Ballet
07b5a04bd6
core/tracing: fix copy/paste error+comments in reason listing (#30431)
Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
2024-09-14 15:44:42 +02:00
Guillaume Michel
f544fc3b46
p2p/enode: add quic ENR entry (#30283)
Add `quic` entry to the ENR as proposed in
https://github.com/ethereum/consensus-specs/pull/3644

---------

Co-authored-by: lightclient <lightclient@protonmail.com>
2024-09-13 23:47:18 +02:00
Jerry
2484ea9c97
Remove file added accidentally 2024-09-13 10:58:45 -07:00
Jerry
bb47bdaa4e
Add pending logs back 2024-09-13 10:54:47 -07:00
Pratik Patil
f9ba824588
Merge pull request #1333 from maticnetwork/ahmedabad-amoy-again
AMOY SPECIFIC (updated WMATIC code)
2024-09-13 22:51:22 +05:30
Pratik Patil
b3f10ba53c
v1.4.0-beta2 version bump 2024-09-13 22:20:18 +05:30
Pratik Patil
95c051215d
AMOY SPECIFIC (updated WMATIC code) 2024-09-13 21:07:37 +05:30
Guillaume Ballet
9be2e010c1
core/state, core/vm: Nyota contract create init simplification (#30409)
Implementation of [this EIP-4762
update](https://github.com/ethereum/EIPs/pull/8867).

---------

Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
Co-authored-by: Tanishq Jasoria <jasoriatanishq@gmail.com>
2024-09-13 15:37:30 +02:00
Pratik Patil
e69e4c8bdf
Merge pull request #1332 from maticnetwork/1.4.0-candidate
v1.4.0 release
2024-09-13 18:53:06 +05:30
Pratik Patil
68d19e84d9
v1.4.0 version bump 2024-09-13 18:41:44 +05:30
Pratik Patil
b5a5f8c945
Merge pull request #1330 from maticnetwork/ahmedabad-mainnet
Added Ahmedabad HF related configs and block number for mainnet network
2024-09-13 18:40:47 +05:30
rjl493456442
c0b5d428a9
core/rawdb: more accurate description of freezer in docs (#30393)
fixes https://github.com/ethereum/go-ethereum/issues/29793
2024-09-13 11:17:40 +02:00
Darioush Jalali
7c6b3f9f14
eth/filters: prevent concurrent access in test (#30401)
use a mutex to prevent concurrent access to the api.filters map during `TestPendingTxFilterDeadlock` test
2024-09-13 11:16:47 +02:00
Marcello Ardizzone
f39f79e1ef
Update artifacts upload/download actions version (#1331)
* chg: update artifacts actions versions

* chg: update artifacts actions versions for govuln
2024-09-13 12:32:29 +05:30
Manav Darji
ef43467139
.github/workflows: update actions/upload-artifact to v4 2024-09-13 12:18:48 +05:30
Pratik Patil
625e943fab
added Ahmedabad HF related configs and block number for mainnet 2024-09-13 10:16:40 +05:30
Jerry
b43fb1bf04
Remove duplicated tx fetcher call 2024-09-12 20:41:56 -07:00
Jerry
d9daacad17
Address goroutine leak 2024-09-12 15:56:33 -07:00
anshalshukla
f45da7ca0a
update version of action artifact 2024-09-12 21:28:00 +05:30
Felföldi Zsolt
a01e9742d9
beacon/light/api: fixed blsync update query (#30421)
This PR fixes what https://github.com/ethereum/go-ethereum/pull/30306/
broke. Escaping the `?` in the event sub query was fixed in that PR but
it was still escaped in the `updates` request. This PR adds a URL params
argument to `httpGet` and fixes `updates` query formatting.
2024-09-12 16:08:29 +02:00
anshalshukla
a323609c31
add: eth67 protocol 2024-09-12 16:04:41 +05:30
anshalshukla
a291fa7649
fix: lint 2024-09-12 15:25:44 +05:30
Jerry
f9f774f8a4
Fix fee conversion 2024-09-11 14:46:03 -07:00
Dylan Vassallo
ec69830b6f
core/vm: remove panic when address is not present (#30414)
Remove redundant address presence check in `makeGasSStoreFunc`.

This PR simplifies the `makeGasSStoreFunc` function by removing the
redundant check for address presence in the access list. The updated
code now only checks for slot presence, streamlining the logic and
eliminating unnecessary panic conditions.

This change removes the unnecessary address presence check, simplifying
the code and improving maintainability without affecting functionality.
The previous panic condition was intended as a canary during the testing
phases (i.e. _YOLOv2_) and is no longer needed.
2024-09-11 16:11:08 +03:00
lightclient
c70b0a9138
beacon/engine/types: remove PayloadV4 (#30415)
h/t @MariusVanDerWijden for finding and fixing this on devnet 3.

I made the mistake of thinking `PayloadVersion` was correlated with the
`GetPayloadVX` method, but it actually tracks which version of
`PayloadAttributes` were passed to `forkchoiceUpdated`. So far, Prague
does not necessitate a new version of fcu, so there is no need for
`PayloadV4`.

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2024-09-10 21:52:20 +03:00
marcello33
fc319f7bcb
chg: fix assertions in test 2024-09-10 17:50:34 +02:00
marcello33
18c7226d2e
chg: fix tests 2024-09-10 17:37:22 +02:00
marcello33
8c14f12d68
chg: solve conflicts 2024-09-10 15:32:42 +02:00
marcello33
4ef3f6e1d0
chg: test 2024-09-10 15:30:10 +02:00
marcello33
955eb3dfd7
chg: skip snap synced tests 2024-09-10 15:13:59 +02:00
anshalshukla
1918691cfa
upgrade polyproto version 2024-09-10 11:05:24 +05:30
Daniel Jones
aeb32a8575
Updating to comment out trie, bad copy over from test profile 2024-09-09 15:53:24 -05:00
Daniel Jones
a4d9b3959e
Updating to add quotes to the pbss portions for db.engine and state.scheme, included details regarding pbss not supporting archive 2024-09-09 15:52:06 -05:00
Daniel Jones
54de1288f1
bumping releaser and checkout versions to address future end of life support for node versions used 2024-09-09 15:46:05 -05:00
Jerry
44d0938775
Log info about mismatched valset (#1325) 2024-09-06 10:30:48 -07:00
Jerry
94ead5eb76
Add test for concurrent revert in MVHashmap (#1326)
* Add test for concurrent revert in MVHashmap

* Address CR comment
2024-09-06 10:30:34 -07:00
rjl493456442
d71831255d
core/state/snapshot: port changes from 29995 (#30040)
#29995 has been reverted due to an unexpected flaw in the state snapshot
process.

Specifically, it attempts to stop the state snapshot generation, which
could potentially
cause the system to halt if the generation is not currently running.

This pull request ports the changes made in #29995 and fixes the flaw.
2024-09-06 18:02:34 +03:00
Roberto Bayardo
88c8459005
eth/fetcher: fix blob transaction propagation (#30125)
This PR fixes an issue with blob transaction propagation due to the blob
transation txpool rejecting transactions with gapped nonces. The
specific changes are:

- fetch transactions from a peer in the order they were announced to
minimize nonce-gaps (which cause blob txs to be rejected

- don't wait on fetching blob transactions after announcement is
received, since they are not broadcast

Testing:
- unit tests updated to reflect that fetch order should always match tx
announcement order
- unit test added to confirm blob transactions are scheduled immediately
for fetching
  - running the PR on an eth mainnet full node without incident so far

---------

Signed-off-by: Roberto Bayardo <bayardo@alum.mit.edu>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-09-06 13:32:01 +03:00
Sina M
8f4fac7b86
internal/ethapi: eth_multicall (#27720)
This is a successor PR to #25743. This PR is based on a new iteration of
the spec: https://github.com/ethereum/execution-apis/pull/484.

`eth_multicall` takes in a list of blocks, each optionally overriding
fields like number, timestamp, etc. of a base block. Each block can
include calls. At each block users can override the state. There are
extra features, such as:

- Include ether transfers as part of the logs
- Overriding precompile codes with evm bytecode
- Redirecting accounts to another address

## Breaking changes

This PR includes the following breaking changes:

- Block override fields of eth_call and debug_traceCall have had the
following fields renamed
  - `coinbase` -> `feeRecipient`
  - `random` -> `prevRandao`
  - `baseFee` -> `baseFeePerGas`

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-09-06 11:31:00 +02:00
Marius Kjærstad
83775b1dc7
build: upgrade -dlgo version to Go 1.23.1 (#30404)
New security fix:
https://groups.google.com/g/golang-announce/c/K-cEzDeCtpc
2024-09-06 11:11:14 +03:00
rjl493456442
5035f99bce
core/state: get rid of field pointer in journal (#30361)
This pull request replaces the field pointer in journal entry with the
field itself, specifically the address of mutated account.

While it will introduce the extra allocation cost, but it's easier for
code reading. Let's measure the overhead overall to see if the change is
acceptable or not.
2024-09-06 15:42:59 +08:00
Pratik Patil
da611cd193
Merge branch '1.4.0-candidate' of https://github.com/maticnetwork/bor into 1.4.0-candidate 2024-09-05 21:12:59 +05:30
Pratik Patil
2415826a8a
v1.4.0-beta version bump 2024-09-05 21:12:27 +05:30
Pratik Patil
79fd5cad70
added Ahmedabad HF related configs and block number for amoy (#1324) 2024-09-05 21:11:59 +05:30
Manav Darji
8262eae9e3
consensus/bor: use CallWithState to fetch last state id (#1323)
* consensus/bor: use CallWithState to fetch last state id

* fix
2024-09-05 21:11:44 +05:30
rjl493456442
623b17ba20
core/state: state reader abstraction (#29761)
This pull request introduces a state.Reader interface for state
accessing.

The interface could be implemented in various ways. It can be pure trie
only reader, or the combination of trie and state snapshot. What's more,
this interface allows us to have more flexibility in the future, e.g.
the
archive reader (for accessing archive state).

Additionally, this pull request removes the following metrics

- `chain/snapshot/account/reads`
- `chain/snapshot/storage/reads`
2024-09-05 13:10:47 +03:00
anshalshukla
fe5d813497
fix: integration syntax 2024-09-05 15:15:25 +05:30
Marius van der Wijden
23973bd3a0
build: increase go test timeout (#30398)
This increases the timeout for the go tests on ci, this should prevent
travis from erroring.

see:
https://app.travis-ci.com/github/ethereum/go-ethereum/jobs/625803693
2024-09-05 10:50:34 +02:00
anshalshukla
a66305dae3
fix: lint, add: milestone related tests in downloader 2024-09-05 14:03:10 +05:30
anshalshukla
ef88b4dfce
fix: parallelise tests in core 2024-09-05 13:46:37 +05:30