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

geth/v1.14.10 upstream merge #392

Closed

Commits on Aug 12, 2024

  1. Configuration menu
    Copy the full SHA
    1cf3b5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab03c57 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bc95452 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. core/txpool/blobpool: fix error message (#30247)

    the validation process only checks for 'less than', which is
    inconsistent with the error output
    withzoo authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    bd57f35 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. go.mod: upgrade to pebble v1.1.2 (#30297)

    Includes a fix for MIPS32 support.
    
    Pebble release:
    https://github.com/cockroachdb/pebble/releases/tag/v1.1.2
    Key fix for mips32:
    cockroachdb/pebble@9f3904a
    (also the only change from v1.1.1.
    ajsutton authored Aug 14, 2024
    Configuration menu
    Copy the full SHA
    2b9d198 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. core: only compute state root once (#30299)

    This PR refactors the genesis initialization a bit, s.th. we only
    compute the blockhash once instead of twice as before (during hashAlloc
    and flushAlloc)
    
    This will significantly reduce the amount of memory allocated during
    genesis init
    
    ---------
    
    Co-authored-by: Gary Rong <[email protected]>
    MariusVanDerWijden and rjl493456442 authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    c686485 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f2e5b0 View commit details
    Browse the repository at this point in the history
  3. eth/fetcher: always expect transaction metadata in announcement (#30288)

    This pull request drops the legacy transaction retrieval support from before
    eth68, adding the restrictions that transaction metadata must be provided
    along with the transaction announment.
    rjl493456442 authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    c4b01d8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c356847 View commit details
    Browse the repository at this point in the history
  5. eth/tracers/js: add coinbase addr to ctx (#30231)

    Add coinbase address to javascript tracer context.
    
    This PR adds the `coinbase` address to `jsTracer.ctx`, allowing access
    to the coinbase address (fee receipient) in custom JavaScript tracers.
    
    Example usage:
    
    ```javascript
    result: function(ctx) {
      return toAddress(ctx.coinbase);
    }
    ```
    
    This change enables custom tracers to access coinbase address,
    previously unavailable, enhancing their capabilities to match built-in
    tracers.
    achmand authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    7a149a1 View commit details
    Browse the repository at this point in the history
  6. eth: dial nodes from discv5 (#30302)

    Here I am adding a discv5 nodes source into the p2p dial iterator. It's
    an improved version of #29533.
    
    Unlike discv4, the discv5 random nodes iterator will always provide full
    ENRs. This means we can apply filtering to the results and will only try
    dialing nodes which explictly opt into the eth protocol with a matching
    chain.
    
    I have also removed the dial iterator from snap. We don't have an
    official DNS list for snap anymore, and I doubt anyone else is running
    one. While we could potentially filter for snap on discv5, there will be
    very few nodes announcing it, and the extra iterator would just stall
    the dialer.
    
    ---------
    
    Co-authored-by: lightclient <[email protected]>
    fjl and lightclient authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    6eb42a6 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. beacon/light: handle endpoint URL more gracefully (#30306)

    blsync was failing if the light endpoint it was provided ended with a
    `/`. This change should handle the joining more gracefully.
    s1na authored Aug 16, 2024
    Configuration menu
    Copy the full SHA
    43640f1 View commit details
    Browse the repository at this point in the history
  2. core: remove withdrawal length check for state processor (#30286)

    The withdrawal length is already verified by the beacon consensus package, so the check in the state processor is a duplicate.
    islishude authored Aug 16, 2024
    Configuration menu
    Copy the full SHA
    09d889d View commit details
    Browse the repository at this point in the history
  3. vm: simplify error handling in vm.EVM.create() (#30292)

    To allow all error paths in `vm.EVM.create()` to consume the necessary
    gas, there is currently a pattern of gating code on `if err == nil`
    instead of returning as soon as the error occurs. The same behaviour can
    be achieved by abstracting the gated code into a method that returns
    immediately on error, improving readability and thus making it easier to
    understand and maintain.
    ARR4N authored Aug 16, 2024
    Configuration menu
    Copy the full SHA
    710c3f3 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. internal/build: include git-date on detached head (#30320)

    When we are building in detached head, we cannot easily obtain the same information as we can if we're in non-detached head.
    
    However, one thing we _can_ obtain is the git-hash and git-date. Currently, we omit to include the git-date into the build-info, which causes problem for reproducable builds which are on a detached head.
    
    This change fixes it to include the date-info always.
    holiman authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    60db6a7 View commit details
    Browse the repository at this point in the history
  2. build: remove mantic from ppa builds (#30322)

    removes ppa-build for ubuntu `mantic`
    holiman authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    8486722 View commit details
    Browse the repository at this point in the history
  3. gitignore: ignore upload-artefacts (#30325)

    Our `WriteArchive`, used by ci builder, creates files in the repo root,in order to upload. After we've built the amd64-builds, we create the uploads, and cause the repo to be flagged as dirty for the remaining builds.
    
    This change fixes it by adding the artefacts to gitignore. Closes #30324
    holiman authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    41b3b30 View commit details
    Browse the repository at this point in the history
  4. eth/catalyst: ensure period zero mode leaves no pending txs in pool (…

    …#30264)
    
    closes #29475, replaces #29657, #30104 
    
    Fixes two issues. First is a deadlock where the txpool attempts to reorg, but can't complete because there are no readers left for the new txs subscription. Second, resolves a problem with on demand mode where txs may be left pending when there are more pending txs than block space.
    
    Co-authored-by: Martin Holst Swende <[email protected]>
    lightclient and holiman authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    84565dc View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. accounts/abi: handle ABIs with contract type parameter (#30315)

    convert parameter of type contract to the basic `address` type
    ---------
    
    Co-authored-by: Martin HS <[email protected]>
    chen4903 and holiman authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    65aaf52 View commit details
    Browse the repository at this point in the history
  2. core/rawdb: drop MigrateTable (#30331)

    These are the leftovers from #24028.
    s1na authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    3b48b16 View commit details
    Browse the repository at this point in the history
  3. core/vm: reuse Memory instances (#30137)

    This PR adds a sync.Pool to reuse instances of Memory in EVMInterpreter.
    lmittmann authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    fc88cea View commit details
    Browse the repository at this point in the history
  4. build: attempt at reproducible builds (#30321)

    This PR implements the conclusions from
    ethereum/go-ethereum#28987 (comment),
    that is:
    
    Building with `--strip-all` as a ld-flag to the cgo linker, to remove
    symbols. Without that, some spurious reference to a temporary file is
    included into the kzg-related library.
    
    Building with `--build-id=none`, to avoid putting a `build id` into the file.
    holiman authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    693e40a View commit details
    Browse the repository at this point in the history
  5. all: update to go version 1.23.0 (#30323)

    This PR updates the version of go used in builds and docker to
    1.23.0. Release notes: https://go.dev/doc/go1.23
    
    More importantly, following our policy of maintaining the last two
    versions (which now becomes 1.23 and 1.22), we can now make use of
    the things that were introduced in 1.22: https://go.dev/doc/go1.22
    
    Go 1.22 makes two changes to “for” loops.
    - each iteration creates new variables, 
    - for loops may range over integers
    
    Other than that, some interesting library changes and other stuff.
    holiman authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    d0fd133 View commit details
    Browse the repository at this point in the history
  6. rpc: add timeout to rpc client Unsubscribe (#30318)

    Fixes #30156
    
    This adds a repro of the linked issue. I fixed it by adding a timeout
    when issuing the call to unsubscribe.
    lightclient authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    15fb0dc View commit details
    Browse the repository at this point in the history
  7. cmd/devp2p: require dns:read, dns:edit permissions for cloudflare dep…

    …loy (#30326)
    
    This PR adds the `dns:read` and `dns:edit` permissions to the required
    set of permissions checked before deploying an ENR tree to Cloudflare.
    These permissions are necessary for a successful publish.
    
    **Background**:
    The current logic for `devp2p dns to-cloudflare` checks for `zone:edit`
    and `zone:read` permissions. However, when running the command with only
    these two permissions, the following error occurs:
    ```
    wrong permissions on zone REMOVED-ZONE: map[#zone:edit:false #zone:read:true]
    ```
    
    Adding `zone:read` and `zone:edit` to the API token led to a different
    error:
    ```
    INFO [08-19|14:06:16.782] Retrieving existing TXT records on pos-nodes.hardfork.dev
    Authentication error (10000)
    ```
    
    This suggested that additional permissions were required. I added
    `dns:read`, but encountered another error:
    ```
    INFO [08-19|14:11:42.342] Retrieving existing TXT records on pos-nodes.hardfork.dev
    INFO [08-19|14:11:42.851] Updating DNS entries
    failed to publish REMOVED.pos-nodes.hardfork.dev: Authentication error (10000)
    ```
    
    Finally, after adding both `dns:read` and `dns:edit` permissions, the
    command executed successfully with the following output:
    ```
    INFO [08-19|14:13:07.677] Checking Permissions on zone REMOVED-ZONE
    INFO [08-19|14:13:08.014] Retrieving existing TXT records on pos-nodes.hardfork.dev
    INFO [08-19|14:13:08.440] Updating DNS entries
    INFO [08-19|14:13:08.440] "Updating pos-nodes.hardfork.dev from \"enrtree-root:v1 e=FSED3EDKEKRDDFMCLP746QY6CY l=FDXN3SN67NA5DKA4J2GOK7BVQI seq=1 sig=Glja2c9RviRqOpaaHR0MnHsQwU76nJXadJwFeiXpp8MRTVIhvL0LIireT0yE3ETZArGEmY5Ywz3FVHZ3LR5JTAE\" to \"enrtree-root:v1 e=AB66M4ULYD5OYN4XFFCPVZRLUM l=FDXN3SN67NA5DKA4J2GOK7BVQI seq=1 sig=H8cqDzu0FAzBplK4g3yudhSaNtszIebc2aj4oDm5a5ZE5PAg-xpCnQgVE_53CsgsqQpalD9byafx_FrUT61sagA\""
    INFO [08-19|14:13:16.932] Updated DNS entries                      new=32 updated=1 untouched=100
    INFO [08-19|14:13:16.932] Deleting stale DNS entries
    INFO [08-19|14:13:24.663] Deleted stale DNS entries                count=31
    ```
    
    With this PR, the required permissions for deploying an ENR tree to
    Cloudflare now include `zone:read`, `zone:edit`, `dns:read`, and
    `dns:edit`. The initial check now includes all of the necessary
    permissions and indicates in the error message which permissions are
    missing:
    ```
    INFO [08-19|14:17:20.339] Checking Permissions on zone REMOVED-ZONE
    wrong permissions on zone REMOVED-ZONE: map[#dns_records:edit:false #dns_records:read:false #zone:edit:false #zone:read:true]
    ```
    praetoriansentry authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    0fde506 View commit details
    Browse the repository at this point in the history
  8. all: clean up goerli flag and config (#30289)

    Co-authored-by: lightclient <[email protected]>
    stevemilk and lightclient authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    3c37db7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    00294e9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2a534ee View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. trie: use go-verkle helper for speedier (*VerkleTrie).RollBackAccount…

    … (#30242)
    
    This is a performance improvement on the account-creation rollback code
    required for the archive node to support verkle. It uses the utility
    function `DeleteAtStem` to remove code and account data per-group
    instead of doing it leaf by leaf.
    
    It also fixes an index bug, as code is chunked in 31-byte chunks, so
    comparing with the code size should use 31 as its stride.
    
    ---------
    
    Co-authored-by: Felix Lange <[email protected]>
    gballet and fjl authored Aug 21, 2024
    Configuration menu
    Copy the full SHA
    df645e7 View commit details
    Browse the repository at this point in the history
  2. eth/protocols/eth: handle zero-count header requests (#30305)

    Proper fix for handling `count=0` get header requests. 
    
    https://en.wikipedia.org/wiki/Count_Zero
    holiman authored Aug 21, 2024
    Configuration menu
    Copy the full SHA
    733fcbb View commit details
    Browse the repository at this point in the history
  3. eth/tracers: avoid panic in state test runner (#30332)

    Make tracers more robust by handling `nil` receipt as input. 
    Also pass in a receipt with gas used in the state test runner.
    Closes ethereum/go-ethereum#30117.
    
    ---------
    
    Co-authored-by: Sina Mahmoodi <[email protected]>
    holiman and s1na authored Aug 21, 2024
    Configuration menu
    Copy the full SHA
    30824fa View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. build: fix hash for go1.23.0.linux-riscv64.tar.gz (#30335)

    build: fix hash for go1.23.0.linux-riscv64.tar.gz
    sandakersmann authored Aug 22, 2024
    Configuration menu
    Copy the full SHA
    941ae33 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. build: make go buildid static (#30342)

    The previous clearing of buildid did fully work, turns out we need to
    set it in `ldflags`
    
    The go buildid is the only remaining hurdle for reproducible builds, see
    ethereum/go-ethereum#28987 (comment)
    
    This PR changes the go build id application note to say literally `none`
    
    golang/go#33772 (comment):
    
    > This difference is due to the .note.go.buildid section added by the
    linker. It can be set to something static e.g. -ldflags=-buildid= (empty
    string) to gain reproducibility.
    holiman authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    ada20c0 View commit details
    Browse the repository at this point in the history
  2. trie: avoid un-needed map copy (#30343)

    This change avoids the an unnecessary map copy if the preimage recording is not enabled.
    rjl493456442 authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    020f026 View commit details
    Browse the repository at this point in the history
  3. beacon/blsync: better error information in test (#30336)

    this change reports the error instead of ignoring it
    karlb authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    c12a1c9 View commit details
    Browse the repository at this point in the history
  4. beacon/light/sync: basic tests for rangeLock (#30269)

    adds simple tests for lock and firstUnlocked method from rangeLock
    type
    
    ---------
    
    Co-authored-by: lightclient <[email protected]>
    Gealber and lightclient authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    eaf4285 View commit details
    Browse the repository at this point in the history
  5. build: debug travis build (#30344)

    debugging travis build pipeline
    holiman authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    0378dc8 View commit details
    Browse the repository at this point in the history
  6. gitignore: ignore build signatures (#30346)

    Ignore files are generated during signing of download-binaries, which 'dirty' the vcs for subsequent builds.
    holiman authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    1d006bd View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. doc: update 2021-08-22-split-postmortem (#30351)

    Update 2021-08-22-split-postmortem
    Ocheretovich authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4e17f28 View commit details
    Browse the repository at this point in the history
  2. core: implement EIP-2935 (#29465)

    https://eips.ethereum.org/EIPS/eip-2935
    
    ---------
    
    Co-authored-by: Guillaume Ballet <[email protected]>
    Co-authored-by: Ignacio Hagopian <[email protected]>
    Co-authored-by: Martin HS <[email protected]>
    4 people authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a223efc View commit details
    Browse the repository at this point in the history
  3. core: add metrics for state access (#30353)

    This pull request adds a few more performance metrics, specifically:
    
    - The average time cost of an account read
    - The average time cost of a storage read
    - The rate of account reads
    - The rate of storage reads
    rjl493456442 authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    bfda8ae View commit details
    Browse the repository at this point in the history
  4. core/state: fix trie prefetcher for verkle (#30354)

    This pull request fixes the panic issue in prefetcher once the verkle is
    activated.
    rjl493456442 authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9b5d141 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. p2p/discover: fix Write method in metered connection (#30355)

    `WriteToUDP` was never called, since `meteredUdpConn` exposed directly
    all the methods from the underlying `UDPConn` interface.
    
    This fixes the `discover/egress` metric never being updated.
    ngotchac authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    87377c5 View commit details
    Browse the repository at this point in the history
  2. accounts/abi/bind, ethclient/simulated: check SendTransaction error i…

    …n tests (#30349)
    
    In few tests the returned error from `SendTransaction` is not being
    checked. This PR checks the returned err in tests.
    
    Returning errors also revealed tx in `TestCommitReturnValue` is not
    actually being sent, and returns err ` only replay-protected (EIP-155)
    transactions allowed over RPC`. Fixed the transaction by using the
    `testTx` function.
    ceyonur authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    9eb9154 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. core/state: semantic journalling (part 1) (#28880)

    This is a follow-up to #29520, and a preparatory PR to a more thorough
    change in the journalling system.
    
    ### API methods instead of `append` operations
    
    This PR hides the journal-implementation details away, so that the
    statedb invokes methods like `JournalCreate`, instead of explicitly
    appending journal-events in a list. This means that it's up to the
    journal whether to implement it as a sequence of events or
    aggregate/merge events.
    
    ### Snapshot-management inside the journal 
    
    This PR also makes it so that management of valid snapshots is moved
    inside the journal, exposed via the methods `Snapshot() int` and
    `RevertToSnapshot(revid int, s *StateDB)`.
    
    
    ### SetCode
    
    JournalSetCode journals the setting of code: it is implicit that the
    previous values were "no code" and emptyCodeHash. Therefore, we can
    simplify the setCode journal.
    
    ### Selfdestruct
    
    The self-destruct journalling is a bit strange: we allow the
    selfdestruct operation to be journalled several times. This makes it so
    that we also are forced to store whether the account was already
    destructed.
    
    What we can do instead, is to only journal the first destruction, and
    after that only journal balance-changes, but not journal the
    selfdestruct itself.
    
    This simplifies the journalling, so that internals about state
    management does not leak into the journal-API.
    
    ### Preimages
    
    Preimages were, for some reason, integrated into the journal management,
    despite not being a consensus-critical data structure. This PR undoes
    that.
    
    ---------
    
    Co-authored-by: Gary Rong <[email protected]>
    holiman and rjl493456442 authored Aug 28, 2024
    Configuration menu
    Copy the full SHA
    0e5546f View commit details
    Browse the repository at this point in the history
  2. signer/core/apitypes: support fixed size arrays for EIP-712 typed dat…

    …a (#30175)
    
    When attempting to hash a typed data struct that includes a type
    reference with a fixed-size array, the validation process fails.
    According to EIP-712, arrays can be either fixed-size or dynamic,
    denoted by `Type[n]` or `Type[]` respectively, although it appears this
    currently isn't supported.
    
    This change modifies  the validation logic to accommodate types
    containing fixed-size arrays.
    mdymalla authored Aug 28, 2024
    Configuration menu
    Copy the full SHA
    ea3b509 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. consensus/beacon, core/types: add verkle witness builder (#30129)

    This PR adds the bulk verkle witness+proof production at the end of block
    production. It reads all data from the tree in one swoop and produces
    a verkle proof.
    
    Co-authored-by: Felix Lange <[email protected]>
    gballet and fjl authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    e9467ee View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. trie, core/state: Nyota EIP-6800 & EIP-4762 spec updates (#30357)

    This PR implements changes related to
    [EIP-6800](https://eips.ethereum.org/EIPS/eip-6800) and
    [EIP-4762](https://eips.ethereum.org/EIPS/eip-4762) spec updates.
    
    A TL;DR of the changes is that `Version`, `Balance`, `Nonce` and
    `CodeSize` are encoded in a single leaf named `BasicData`. For more
    details, see the [_Header Values_ table in
    EIP-6800](https://eips.ethereum.org/EIPS/eip-6800#header-values).
    
    The motivation for this was simplifying access event patterns, reducing
    code complexity, and, as a side effect, saving gas since fewer leaf
    nodes must be accessed.
    
    ---------
    
    Co-authored-by: Guillaume Ballet <[email protected]>
    Co-authored-by: Felix Lange <[email protected]>
    3 people authored Aug 30, 2024
    Configuration menu
    Copy the full SHA
    ab3ee99 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. Include tracerConfig in created tracing test (#30364)

    Fixes the tracer test filler for when there is tracerConfig.
    karlb authored Sep 2, 2024
    Configuration menu
    Copy the full SHA
    36a7134 View commit details
    Browse the repository at this point in the history
  2. core/state: pull the verkle trie from prefetcher for empty storage ro…

    …ot (#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.
    rjl493456442 authored Sep 2, 2024
    Configuration menu
    Copy the full SHA
    922eb03 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. funding.json: add funding information file (#30385)

    Adds a list of funding identifiers.
    lightclient authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    de597af View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. 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.
    lightclient authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    dfd33c7 View commit details
    Browse the repository at this point in the history
  2. 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.
    MariusVanDerWijden authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    b0b67be View commit details
    Browse the repository at this point in the history
  3. core: fix compilation error (#30394)

    un-borks a compilation error from a recent merge to master
    holiman authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    fdb8499 View commit details
    Browse the repository at this point in the history
  4. all: remove funding verifier (#30391)

    Now that verification is done, we can remove the funding information.
    lightclient authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    7ef49e3 View commit details
    Browse the repository at this point in the history
  5. 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
    holiman authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    c3f13b2 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. 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
    MariusVanDerWijden authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    23973bd View commit details
    Browse the repository at this point in the history
  2. 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`
    rjl493456442 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    623b17b View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. 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.
    rjl493456442 authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    5035f99 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83775b1 View commit details
    Browse the repository at this point in the history
  3. internal/ethapi: eth_multicall (#27720)

    This is a successor PR to #25743. This PR is based on a new iteration of
    the spec: ethereum/execution-apis#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 <[email protected]>
    Co-authored-by: Martin Holst Swende <[email protected]>
    3 people authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    8f4fac7 View commit details
    Browse the repository at this point in the history
  4. 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 <[email protected]>
    Co-authored-by: Gary Rong <[email protected]>
    roberto-bayardo and rjl493456442 authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    88c8459 View commit details
    Browse the repository at this point in the history
  5. 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.
    rjl493456442 authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    d718312 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. 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 <[email protected]>
    lightclient and MariusVanDerWijden authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    c70b0a9 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. 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.
    achmand authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    ec69830 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. beacon/light/api: fixed blsync update query (#30421)

    This PR fixes what ethereum/go-ethereum#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.
    zsfelfoldi authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    a01e974 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. eth/filters: prevent concurrent access in test (#30401)

    use a mutex to prevent concurrent access to the api.filters map during `TestPendingTxFilterDeadlock` test
    darioush authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    7c6b3f9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0b5d42 View commit details
    Browse the repository at this point in the history
  3. core/state, core/vm: Nyota contract create init simplification (#30409)

    Implementation of [this EIP-4762
    update](ethereum/EIPs#8867).
    
    ---------
    
    Signed-off-by: Guillaume Ballet <[email protected]>
    Co-authored-by: Tanishq Jasoria <[email protected]>
    gballet and tanishqjasoria authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    9be2e01 View commit details
    Browse the repository at this point in the history
  4. p2p/enode: add quic ENR entry (#30283)

    Add `quic` entry to the ENR as proposed in
    ethereum/consensus-specs#3644
    
    ---------
    
    Co-authored-by: lightclient <[email protected]>
    guillaumemichel and lightclient authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    f544fc3 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. Configuration menu
    Copy the full SHA
    07b5a04 View commit details
    Browse the repository at this point in the history
  2. core/txpool/blobpool: avoid possible zero index panic (#30430)

    This situation(`len(txs) == 0`) rarely occurs, but if it does, it will
    panic.
    
    ---------
    
    Co-authored-by: Martin HS <[email protected]>
    mask-pp and holiman authored Sep 14, 2024
    Configuration menu
    Copy the full SHA
    0dd7e82 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Configuration menu
    Copy the full SHA
    ae70744 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    4c4f212 View commit details
    Browse the repository at this point in the history
  2. core/types: more easily extensible tx signing (#30372)

    This change makes the code slightly easier for downstream-projects to extend with more signer-types, but if functionalily equivalent to the previous code.
    piersy authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    0342496 View commit details
    Browse the repository at this point in the history
  3. core, trie: prealloc capacity for maps (#30437)

    - preallocate capacity for map
    - avoid `reinject` adding empty value
    - use `maps.Copy`
    mask-pp authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    ec596e0 View commit details
    Browse the repository at this point in the history
  4. core/tracing: fix typo in comment (#30443)

    minor fix
    eltociear authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    8dd2962 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. core/tracing: add verkle gas change reasons to changelog (#30444)

    Add changes from #30409 and #29338 to changelog.
    
    ---------
    
    Co-authored-by: Martin HS <[email protected]>
    Co-authored-by: Guillaume Ballet <[email protected]>
    3 people authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    8032b63 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    d09600f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f321dfa View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30456 from ethereum/master

    Merge branch 'master' into release/1.14
    karalabe authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    c350d3a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af794ef View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. genesis: fix dev mode alloc (#30460)

    Balance being null causes `getGenesisState` to fail as the balance field
    is required in json marshaling of an account.
    s1na authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    868d53c View commit details
    Browse the repository at this point in the history
  2. core: minor fix for the log wrapper with debug purpose (#30454)

    After this PR, ethereum/go-ethereum#28187, the
    way to set the default logger is different. This PR only updates the way
    to set logger in some test cases' comments that existed in the codebase
    (since this commit
    ethereum/go-ethereum@b63e3c37a6). Although I
    am not sure if it a good way to leave the code in the comment, it truly
    makes me more efficiently to debug and fix the failing test cases.
    CaraWang authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    c4c2c4f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7513966 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    deb5c08 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. build: fix macos builds by working around travis osx flaw (#30479)

    This should fix ethereum/go-ethereum#30471.
    See investigation in ethereum/go-ethereum#30478
    for more background.
    holiman authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    b018da9 View commit details
    Browse the repository at this point in the history
  2. beacon, core, eth, miner: integrate witnesses into production Geth (#…

    …30069)
    
    This PR integrates witness-enabled block production, witness-creating
    payload execution and stateless cross-validation into the `engine` API.
    The purpose of the PR is to enable the following use-cases (for API
    details, please see next section):
    
    - Cross validating locally created blocks:
    - Call `forkchoiceUpdatedWithWitness` instead of `forkchoiceUpdated` to
    trigger witness creation too.
    - Call `getPayload` as before to retrieve the new block and also the
    above created witness.
    - Call `executeStatelessPayload` against another client to
    cross-validate the block.
    
    - Cross validating locally processed blocks:
    - Call `newPayloadWithWitness` instead of `newPayload` to trigger
    witness creation too.
    - Call `executeStatelessPayload` against another client to
    cross-validate the block.
    
    - Block production for stateless clients (local or MEV builders):
    - Call `forkchoiceUpdatedWithWitness` instead of `forkchoiceUpdated` to
    trigger witness creation too.
    - Call `getPayload` as before to retrieve the new block and also the
    above created witness.
    - Propagate witnesses across the consensus libp2p network for stateless
    Ethereum.
    
    - Stateless validator validation:
    - Call `executeStatelessPayload` with the propagated witness to
    statelessly validate the block.
    
    *Note, the various `WithWitness` methods could also *just be* an
    additional boolean flag on the base methods, but this PR wanted to keep
    the methods separate until a final consensus is reached on how to
    integrate in production.*
    
    ---
    
    The following `engine` API types are introduced:
    
    ```go
    // StatelessPayloadStatusV1 is the result of a stateless payload execution.
    type StatelessPayloadStatusV1 struct {
    	Status          string      `json:"status"`
    	StateRoot       common.Hash `json:"stateRoot"`
    	ReceiptsRoot    common.Hash `json:"receiptsRoot"`
    	ValidationError *string     `json:"validationError"`
    }
    ```
    
    - Add `forkchoiceUpdatedWithWitnessV1,2,3` with same params and returns
    as `forkchoiceUpdatedV1,2,3`, but triggering a stateless witness
    building if block production is requested.
    - Extend `getPayloadV2,3` to return `executionPayloadEnvelope` with an
    additional `witness` field of type `bytes` iff created via
    `forkchoiceUpdatedWithWitnessV2,3`.
    - Add `newPayloadWithWitnessV1,2,3,4` with same params and returns as
    `newPayloadV1,2,3,4`, but triggering a stateless witness creation during
    payload execution to allow cross validating it.
    - Extend `payloadStatusV1` with a `witness` field of type `bytes` if
    returned by `newPayloadWithWitnessV1,2,3,4`.
    - Add `executeStatelessPayloadV1,2,3,4` with same base params as
    `newPayloadV1,2,3,4` and one more additional param (`witness`) of type
    `bytes`. The method returns `statelessPayloadStatusV1`, which mirrors
    `payloadStatusV1` but replaces `latestValidHash` with `stateRoot` and
    `receiptRoot`.
    karalabe authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9326a11 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. travis: work around travis/osx/go1.23 setup bug (#30491)

    This is a work-around for a strange issue with travis, specifically,
    `os=osx, go: 1.23.1`. When this is used, the actual go that ends up
    being used is `go1.19.4 darwin/amd64 `.
    
    Using `which go`, it told me that the `go` in the path was a softlink at
    `/Users/travis/gopath/bin/go1.23.1 `. However, this was not true: using
    `command -v go`, it told me that the actual `go` that was used is a
    softlink at `/usr/local/bin/go`.
    
    This change rewrites the `/usr/local/bin/go` softlink to point to the
    binary at `/Users/travis/gopath/bin/go1.23.1`, so we get the right
    go-version.
    holiman authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    f4c6c03 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. cmd/utils: fix setEtherbase (#30488)

    Make `setEtherbase` fall thorugh and handle `miner.pending.feeRecipient` after showing deprecation-warning for `miner.etherbase`-flag.
    zhiqiangxu authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    118c84a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    956d32d View commit details
    Browse the repository at this point in the history
  3. core/state: commit snapshot only if the base layer exists (#30493)

    This pull request skips the state snapshot update if the base layer is
    not existent, eliminating the numerous warning logs after an unclean
    shutdown.
    
    Specifically, Geth will rewind its chain head to a historical block
    after unclean shutdown and state snapshot will be remained as unchanged
    waiting for recovery. During this period of time, the snapshot is unusable
    and all state updates should be ignored/skipped for state snapshot update.
    rjl493456442 authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    b805772 View commit details
    Browse the repository at this point in the history
  4. internal/ethapi/api: for simulated calls, set gaspool to max value if…

    … global gascap is 0 (#30474)
    
    In #27720, we introduced RPC global gas cap. A value of `0` means an unlimited gas cap. However, this was not the case for simulated calls. This PR fixes the behaviour.
    jwasinger authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    564b616 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. core/rawdb: make sure specified state scheme is valid (#30499)

    This change exits with error if user provided a `--state.scheme` which is neither `hash` nor `path`
    mask-pp authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    2278647 View commit details
    Browse the repository at this point in the history
  2. internal/ethapi: fix gascap 0 for eth_simulateV1 (#30496)

    Similar to #30474.
    s1na authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    f2e13c7 View commit details
    Browse the repository at this point in the history
  3. core/tracing, core/vm: add ContractCode to the OpContext (#30466)

    Extends the opcontext interface to include accessor for code being executed in current context. While it is possible to get the code via `statedb.GetCode`, that approach doesn't work for initcode.
    kchojn authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    55ed8fe View commit details
    Browse the repository at this point in the history
  4. core/vm: more benchmarks for bls g1/g2-multiexp precompiles (#30459)

    This change adds more comprehensive benchmarks with a wider-variety of input sizes for g1 and g2 multi exponentiation.
    jwasinger authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    80b529e View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. p2p/discover: fix flaky tests writing to test.log after completion (#…

    …30506)
    
    This PR fixes two tests, which had a tendency to sometimes write to the `*testing.T` `log` facility after the test function had completed, which is not allowed. This PR fixes it by using waitgroups to ensure that the handler/logwriter terminates before the test exits.
    
    closes #30505
    holiman authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    b5a88da View commit details
    Browse the repository at this point in the history
  2. deps: update supranational/blst (#30504)

    This update should only affect the fuzzers, as far as I know. But it
    seems like it might also fix some arm/macos compilation issue in
    ethereum/go-ethereum#30494
    
    Closes #30494 (I think)
    holiman authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    93675d1 View commit details
    Browse the repository at this point in the history
  3. core/txpool, eth/catalyst: ensure gas tip retains current value upon …

    …rollback (#30495)
    
    Here we move the method that drops all transactions by temporarily increasing the fee
    into the TxPool itself. It's better to have it there because we can set it back to the
    configured value afterwards. This resolves a TODO in the simulated backend.
    jwasinger authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    bb9897f View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    9274f28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abbd3d9 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30518 from holiman/blobpool_fix

    core/txpool/blobpool: return all reinject-addresses
    karalabe authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    52a9d89 View commit details
    Browse the repository at this point in the history
  4. Revert "core/txpool, eth/catalyst: ensure gas tip retains current val…

    …ue upon rollback" (#30521)
    
    Reverts ethereum/go-ethereum#30495
    
    You are free to create a proper Clear method if that's the best way. But
    one that does a proper cleanup, not some hacky call to set gas which
    screws up logs, metrics and everything along the way. Also doesn't work
    for legacy pool local transactions.
    
    The current code had a hack in the simulated code, now we have a hack in
    live txpooling code. No, that's not acceptable. I want the live code to
    be proper, meaningful API, meaningful comments, meaningful
    implementation.
    karalabe authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1df75db View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2695518 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #30522 from ethereum/master

    Release Geth v1.14.10
    karalabe authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1015a42 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. Configuration menu
    Copy the full SHA
    3e514cc View commit details
    Browse the repository at this point in the history
  2. Update fork.yaml

    0x00101010 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    4734e71 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Bug fix

    0x00101010 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c68705f View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    bddb6fe View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    e9c082a View commit details
    Browse the repository at this point in the history