Commit graph

17575 commits

Author SHA1 Message Date
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
Martin HS
c3f13b2a1c
node: fix flaky jwt-test (#30388)
This PR fixes a flaky jwt-test. 

The test is a jwt "from one second in the future". The test passes; the
reason for this is that the CI-system is slow, and by the time the jwt
is actually evaluated, that second has passed, and it's no longer
future.

Alternative to #30380
2024-09-04 16:15:41 +02:00
lightclient
7ef49e350b
all: remove funding verifier (#30391)
Now that verification is done, we can remove the funding information.
2024-09-04 15:19:18 +02:00
Martin HS
fdb84993d8
core: fix compilation error (#30394)
un-borks a compilation error from a recent merge to master
2024-09-04 15:13:20 +02:00
Marius van der Wijden
b0b67be0a2
all: remove forkchoicer and reorgNeeded (#29179)
This PR changes how sidechains are handled. 

Before the merge, it was possible to import a chain with lower td and not set it as canonical. After the merge, we expect every chain that we get via InsertChain to be canonical. Non-canonical blocks can still be inserted
with InsertBlockWIthoutSetHead.

If during the InsertChain, the existing chain is not canonical anymore, we mark it as a sidechain and send the SideChainEvents normally.
2024-09-04 15:03:06 +02:00
lightclient
dfd33c7792
all: implement EIP-6110, execution layer triggered deposits (#29431)
This PR implements EIP-6110: Supply validator deposits on chain. It also sketches
out the base for Prague in the engine API types.
2024-09-04 14:33:51 +02:00
anshalshukla
a159bf7597
fix: set ethapi in handler 2024-09-04 16:29:00 +05:30
anshalshukla
9513da48e2
fix: add back ethApi and mining login in handler 2024-09-04 15:01:04 +05:30
anshalshukla
3cb949f674
fix: avoid capping warnings for gas set by internal system transactions 2024-09-04 13:12:14 +05:30
anshalshukla
693d8aebcd
skip: testcase 2024-09-04 10:52:11 +05:30
lightclient
de597af9c5
funding.json: add funding information file (#30385)
Adds a list of funding identifiers.
2024-09-03 16:22:32 +02:00
anshalshukla
cec3ee18d8
fix: testcases 2024-09-03 16:21:20 +05:30
rjl493456442
922eb033d3
core/state: pull the verkle trie from prefetcher for empty storage root (#30369)
This pull request fixes a flaw in prefetcher.

In verkle tree world, both accounts and storage slots are committed into
a single tree instance for state hashing. If the prefetcher is activated, we will
try to pull the trie for the prefetcher for performance speedup. 

However, we had a special logic to skip pulling storage trie if the
storage root is empty. While it's true for merkle as we have nothing to
do with an empty storage trie, it's totally wrong for verkle. The consequences
for skipping pulling is the storage changes are committed into trie A, while the
account changes are committed into trie B (pulled from the prefetcher), boom.
2024-09-02 10:41:44 +02:00
Karl Bartel
36a7134367
Include tracerConfig in created tracing test (#30364)
Fixes the tracer test filler for when there is tracerConfig.
2024-09-02 10:30:33 +02:00