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 master into eip-4844 branch #34

Closed
wants to merge 57 commits into from

Commits on Aug 18, 2022

  1. cmd. core: save preimages on genesis creation (ethereum#25538)

    force preimage dump for genesis
    gballet authored Aug 18, 2022
    Configuration menu
    Copy the full SHA
    23ac8df View commit details
    Browse the repository at this point in the history
  2. rlp/rlpgen: fix error handling when target type not found (ethereum#2…

    …5547)
    
    typ will be nil when lookupStructType returns an error. cfg.Type should be used instead.
    jtraglia authored Aug 18, 2022
    Configuration menu
    Copy the full SHA
    cce7f08 View commit details
    Browse the repository at this point in the history
  3. trie: improve node rlp decoding performance (ethereum#25357)

    This avoids copying the input []byte while decoding trie nodes. In most
    cases, particularly when the input slice is provided by the underlying
    database, this optimization is safe to use.
    
    For cases where the origin of the input slice is unclear, the copying version
    is retained. The new code performs better even when the input must be
    copied, because it is now only copied once in decodeNode.
    rjl493456442 authored Aug 18, 2022
    Configuration menu
    Copy the full SHA
    a1b8892 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2022

  1. all: fix some typos (ethereum#25551)

    * Fix some typos
    
    * Fix some mistakes
    
    * Revert 4byte.json
    
    * Fix an incorrect fix
    
    * Change files to fails
    jtraglia authored Aug 19, 2022
    Configuration menu
    Copy the full SHA
    2c5648d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa1305f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32e8490 View commit details
    Browse the repository at this point in the history
  4. eth, les: unlock downloader peerSet if there's an error (ethereum#25546)

    Unlock peerSet if there's an error in the downloader
    jtraglia authored Aug 19, 2022
    Configuration menu
    Copy the full SHA
    656dc8c View commit details
    Browse the repository at this point in the history
  5. cmd/geth: parse uint64 value with ParseUint instead of Atoi (ethereum…

    …#25545)
    
    Parse uint64 value with ParseUint instead of Atoi
    jtraglia authored Aug 19, 2022
    Configuration menu
    Copy the full SHA
    9762ddf View commit details
    Browse the repository at this point in the history
  6. consensus/beacon: check ttd reached on pos blocks (ethereum#25552)

    * consensus/beacon: check ttd reached on pos blocks
    
    * consensus/beacon: check ttd reached on pos blocks
    
    * consensus/beacon: check ttd reached on pos blocks
    MariusVanDerWijden authored Aug 19, 2022
    Configuration menu
    Copy the full SHA
    77308cd View commit details
    Browse the repository at this point in the history
  7. eth/filters: add global block logs cache (ethereum#25459)

    This adds a cache for block logs which is shared by all filters. The cache
    size of is configurable using the `--cache.blocklogs` flag.
    
    Co-authored-by: Felix Lange <[email protected]>
    s1na and fjl authored Aug 19, 2022
    Configuration menu
    Copy the full SHA
    36874b6 View commit details
    Browse the repository at this point in the history
  8. accounts/abi: fix set function (ethereum#25477)

    * accounts/abi: fix set function
    
    * don't break things
    
    * update test
    zhiqiangxu authored Aug 19, 2022
    Configuration menu
    Copy the full SHA
    0865880 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ac7ad81 View commit details
    Browse the repository at this point in the history
  10. eth/fetcher: don't spend too much time on transaction inclusion (ethe…

    …reum#25524)
    
    * eth/fetcher: introduce some lag in tx fetching
    
    * eth/fetcher: change conditions a bit
    
    * eth/fetcher: use per-batch quota check
    
    * eth/fetcher: fix some comments
    
    * eth/fetcher: address review concerns
    
    * eth/fetcher: fix panic + add warn log
    
    * eth/fetcher: fix log
    
    * eth/fetcher: fix log
    
    * cmd/devp2p/internal/ethtest: fix ignorign tx announcements from prev. tests
    
    * cmd/devp2p/internal/ethtest: fix TestLargeTxRequest
    
    This increases the number of tx relay messages the test waits for. Since
    go-ethereum now processes incoming txs in smaller batches, the
    announcement messages it sends are also smaller.
    
    Co-authored-by: Felix Lange <[email protected]>
    holiman and fjl authored Aug 19, 2022
    Configuration menu
    Copy the full SHA
    0ce494b View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2022

  1. Revert "eth/fetcher: don't spend too much time on transaction inclusi…

    …on" (ethereum#25567)
    
    Revert "eth/fetcher: don't spend too much time on transaction inclusion (ethereum#25524)"
    
    This reverts commit 0ce494b.
    karalabe authored Aug 22, 2022
    Configuration menu
    Copy the full SHA
    02418c2 View commit details
    Browse the repository at this point in the history
  2. eth/catalyst: warn less frequently if no beacon client is available (e…

    …thereum#25569)
    
    * eth/catalyst: warn less frequently if no beacon client is available
    
    * eth/catalyst: tweak warning frequency a bit
    
    * eth/catalyst: some more tweaks
    
    * Update api.go
    
    Co-authored-by: Felix Lange <[email protected]>
    karalabe and fjl authored Aug 22, 2022
    Configuration menu
    Copy the full SHA
    395f3d4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2de49b0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d711f0 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2022

  1. core, eth/downloader: handle spurious junk bodies from racey rollbacks (

    ethereum#25578)
    
    * eth/downloader: handle junkbodies/receipts in the beacon sync
    
    * core: check for header presence when checking for blocks
    karalabe authored Aug 23, 2022
    Configuration menu
    Copy the full SHA
    81bd998 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5758d1f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    45a660a View commit details
    Browse the repository at this point in the history
  4. Merge pull request ethereum#25581 from karalabe/triedb-fix-flush-order

    core/state, trie: fix trie flush order for proper pruning
    karalabe authored Aug 23, 2022
    Configuration menu
    Copy the full SHA
    9ed10b9 View commit details
    Browse the repository at this point in the history
  5. Merge pull request ethereum#25582 from holiman/err_handling

    consensus/beacon: don't ignore errors
    karalabe authored Aug 23, 2022
    Configuration menu
    Copy the full SHA
    4c114af View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

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

Commits on Aug 25, 2022

  1. Configuration menu
    Copy the full SHA
    6c40aed View commit details
    Browse the repository at this point in the history
  2. internal/ethapi: rename debug getters to match spec (ethereum#25176)

    Some small fixes to get the existing debug methods to conform to the spec. Mainly dropping the encoding information from the method name as it should be deduced from the debug context and allowing the method to be invoked by either block number or block hash. It also adds the method debug_getTransaction which returns the raw tx bytes by tx hash. This is pretty much equivalent to the eth_getRawTransactionByHash method.
    lightclient authored Aug 25, 2022
    Configuration menu
    Copy the full SHA
    70e1e65 View commit details
    Browse the repository at this point in the history
  3. accounts/abi/bind: add const for tx fee elasticity multiplier (ethere…

    …um#25504)
    
    
    Co-authored-by: Felix Lange <[email protected]>
    Co-authored-by: rjl493456442 <[email protected]>
    3 people authored Aug 25, 2022
    Configuration menu
    Copy the full SHA
    f03c37b View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. all: remove duplicate word in comments (ethereum#25618)

    Signed-off-by: Abirdcfly <[email protected]>
    
    Signed-off-by: Abirdcfly <[email protected]>
    Abirdcfly authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    c394c30 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

  1. Configuration menu
    Copy the full SHA
    6e6b508 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d882a5 View commit details
    Browse the repository at this point in the history
  3. docs: specify execution client (ethereum#25566)

    Co-authored-by: Felix Lange <[email protected]>
    sandakersmann and fjl authored Aug 30, 2022
    Configuration menu
    Copy the full SHA
    44b36a0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8df8eb4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7813b67 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2b6df28 View commit details
    Browse the repository at this point in the history
  7. all: move genesis initialization to blockchain (ethereum#25523)

    * all: move genesis initialization to blockchain
    
    * core: add one more check
    
    * core: fix tests
    rjl493456442 authored Aug 30, 2022
    Configuration menu
    Copy the full SHA
    d10c280 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. eth/catalyst: adjust eta for themerge (ethereum#25601)

    * eth/catalyst: adjust eta for themerge
    
    * squash
    
    * squash
    
    * eth/catalyst: address review concerns
    holiman authored Aug 31, 2022
    Configuration menu
    Copy the full SHA
    362256e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    279afd7 View commit details
    Browse the repository at this point in the history
  3. graphql: return correct logs for tx (ethereum#25612)

    * graphql: fix tx logs
    
    * minor
    
    * Use optimized search for selecting tx logs
    s1na authored Aug 31, 2022
    Configuration menu
    Copy the full SHA
    8cfcb41 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d68bb0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dafa40e View commit details
    Browse the repository at this point in the history
  6. trie: cleanup stateTrie (ethereum#25640)

    It's a trivial PR to hide the error log when the trie node is not found in the database. The idea for this change is for all TryXXX functions, the error is already returned and we don't need to fire a log explicitly.
    
    Recently there are a few tickets ethereum#25613 ethereum#25589 reporting that the trie nodes are missing because of debug.SetHead. The root cause is after resetting, the chain rewinds to a historical point and re-imports the blocks on top.
    
    Since the node is already synced and started to accept transactions previously, these transactions are still kept in the txpool and verified by txpool with a live state. This live state is constructed based on the live trie database, which is changed fast by node referencing and de-referencing.
    
    Unfortunately, when we construct a live state(like the state in txpool), we don't reference the state we have. The blockchain will garbage collect the intermediate version nodes in another thread which leads the broken live state.
    
    The best solution for this is to forcibly obtain a reference for all live states we create and call release function once it's used up. But it might end up with more junks persisted into disk. Will try to find an elegant solution later in the following PR.
    rjl493456442 authored Aug 31, 2022
    Configuration menu
    Copy the full SHA
    3f79afb View commit details
    Browse the repository at this point in the history
  7. eth/catalyst: prevent division by zero (ethereum#25654)

    eth/catalyst: prevent diff by zero
    MariusVanDerWijden authored Aug 31, 2022
    Configuration menu
    Copy the full SHA
    95a2c22 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Configuration menu
    Copy the full SHA
    d79bd2f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d46184c View commit details
    Browse the repository at this point in the history
  3. Merge pull request ethereum#25651 from holiman/fix_snapqueue

    eth/protocols/snap: fix problems due to idle-but-busy peers
    karalabe authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    511bf8f View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. mobile: register filter APIs (ethereum#25642)

    This fixes a regression introduced in PR ethereum#25459.
    jakub-freebit authored Sep 2, 2022
    Configuration menu
    Copy the full SHA
    d2027ac View commit details
    Browse the repository at this point in the history
  2. README.md: improve grammar (ethereum#25646)

    Co-authored-by: Felix Lange <[email protected]>
    xternet and fjl authored Sep 2, 2022
    Configuration menu
    Copy the full SHA
    198fa95 View commit details
    Browse the repository at this point in the history
  3. eth/tracers/js: fill in log.refund field (ethereum#25661)

    For some reason, an accessor method for this field exists in JS, but
    the value was never actually assigned.
    s1na authored Sep 2, 2022
    Configuration menu
    Copy the full SHA
    d6a12bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f2890a View commit details
    Browse the repository at this point in the history
  5. node, rpc: add JWT auth support in client (ethereum#24911)

    This adds a generic mechanism for 'dial options' in the RPC client,
    and also implements a specific dial option for the JWT authentication
    mechanism used by the engine API. Some real tests for the server-side
    authentication handling are also added.
    
    Co-authored-by: Joshua Gutow <[email protected]>
    Co-authored-by: Felix Lange <[email protected]>
    3 people authored Sep 2, 2022
    Configuration menu
    Copy the full SHA
    90711ef View commit details
    Browse the repository at this point in the history
  6. rpc: check that "version" is "2.0" in request objects (ethereum#25570)

    The JSON-RPC spec requires the "version" field to be exactly "2.0",
    so we should verify that. This change is not backwards-compatible with
    sloppy client implementations, but I decided to go ahead with it anyway
    because the failure will be caught via the returned error.
    dbadoy authored Sep 2, 2022
    Configuration menu
    Copy the full SHA
    38e002f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0d68b6b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4b9c307 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. eth/tracers/js: improve integer types in log object (ethereum#25668)

    All fields related to gas must be represented as uint64. Depth is
    internally tracked as int, so it makes sense to also store it as int.
    fjl authored Sep 5, 2022
    Configuration menu
    Copy the full SHA
    7318858 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2022

  1. Configuration menu
    Copy the full SHA
    a9ec2ab View commit details
    Browse the repository at this point in the history
  2. Merge pull request ethereum#25694 from karalabe/concurrent-heal-check

    trie: check childrens' existence concurrently for snap heal
    karalabe authored Sep 6, 2022
    Configuration menu
    Copy the full SHA
    d408cb6 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. Merge branch 'master' into eip-4844-rebase

    # Conflicts:
    #	eth/catalyst/api.go
    #	graphql/graphql.go
    #	graphql/graphql_test.go
    #	graphql/service.go
    #	params/config.go
    #	params/version.go
    #	trie/database.go
    mdehoog committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    24fc9fd View commit details
    Browse the repository at this point in the history