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 go-ethereum Archanes (v1.13.4) #159

Merged
merged 20 commits into from
Oct 24, 2023
Merged

Commits on Oct 12, 2023

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

Commits on Oct 13, 2023

  1. eth/protocols/snap: fix snap sync failure on empty storage range (#28…

    …306)
    
    This change addresses an issue in snap sync, specifically when the entire sync process can be halted due to an encountered empty storage range.
    
    Currently, on the snap sync client side, the response to an empty (partial) storage range is discarded as a non-delivery. However, this response can be a valid response, when the particular range requested does not contain any slots.
    
    For instance, consider a large contract where the entire key space is divided into 16 chunks, and there are no available slots in the last chunk [0xf] -> [end]. When the node receives a request for this particular range, the response includes:
    
        The proof with origin [0xf]
        A nil storage slot set
    
    If we simply discard this response, the finalization of the last range will be skipped, halting the entire sync process indefinitely. The test case TestSyncWithUnevenStorage can reproduce the scenario described above.
    
    In addition, this change also defines the common variables MaxAddress and MaxHash.
    rjl493456442 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    1cb3b6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f30cae View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78c8e10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    660cbe4 View commit details
    Browse the repository at this point in the history
  5. build: move version-info into checksum file (#28324)

    * build: upgrade to golang 1.21.2
    
    * build: verify checksums via tool
    
    * deps: upgrade go to 1.21.3
    
    * build: move more build metadata into checksum file
    
    * build: move gobootsrc to checksums
    holiman committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    ed5da55 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    31b566f View commit details
    Browse the repository at this point in the history
  7. trie: make rhs-proof align with last key in range proofs (#28311)

    During snap-sync, we request ranges of values: either a range of accounts or a range of storage values. For any large trie, e.g. the main account trie or a large storage trie, we cannot fetch everything at once.
    
    Short version; we split it up and request in multiple stages. To do so, we use an origin field, to say "Give me all storage key/values where key > 0x20000000000000000". When the server fulfils this, the server provides the first key after origin, let's say 0x2e030000000000000 -- never providing the exact origin. However, the client-side needs to be able to verify that the 0x2e03.. indeed is the first one after 0x2000.., and therefore the attached proof concerns the origin, not the first key.
    
    So, short-short version: the left-hand side of the proof relates to the origin, and is free-standing from the first leaf.
    
    On the other hand, (pun intended), the right-hand side, there's no such 'gap' between "along what path does the proof walk" and the last provided leaf. The proof must prove the last element (unless there are no elements).
    
    Therefore, we can simplify the semantics for trie.VerifyRangeProof by removing an argument. This doesn't make much difference in practice, but makes it so that we can remove some tests. The reason I am raising this is that the upcoming stacktrie-based verifier does not support such fancy features as standalone right-hand borders.
    holiman committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    f62c58f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    425cb6f View commit details
    Browse the repository at this point in the history
  9. cmd, core, ethdb: enable Pebble on 32 bits and OpenBSD too (#28335)

    * cmd, core, ethdb: enable Pebble on 32 bits and OpenBSD too
    
    * ethdb/pebble: use Pebble's internal constant calculation
    karalabe committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    509a64f View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. tests: update execution-spec-tests to 1.0.5 (#28337)

    Updates execution-spec-tests to 1.0.5: https://github.com/ethereum/execution-spec-tests/releases/tag/v1.0.5, switching to develop which contains Cancun tests (which are also enabled in this change).
    holiman committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    4632b7b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e478aa View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Configuration menu
    Copy the full SHA
    a5544d3 View commit details
    Browse the repository at this point in the history
  2. internal/ethapi: fix codehash lookup in eth_getProof (#28357)

    This change fixes #28355, where eth_getProof failed to return the correct codehash under certain conditions. This PR changes the logic to unconditionally look up the codehash, and also adds some more tests.
    holiman committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    8b99ad4 View commit details
    Browse the repository at this point in the history
  3. cmd: fix typos (#28323)

    xiaolou86 committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    00c6383 View commit details
    Browse the repository at this point in the history
  4. eth/fetcher: fix fetcher timeout (#28220)

    This changes fixes a bug in the fetcher, where the timeout for how long to remember underpriced transaction was erroneously compared, and the timeout never hit.
    ---------
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    MariusVanDerWijden and holiman committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    667966c View commit details
    Browse the repository at this point in the history
  5. params: release Geth v1.13.4

    karalabe committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    3f907d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

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

Commits on Oct 23, 2023

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

Commits on Oct 24, 2023

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