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

Upstream merge v2.60.6 #116

Merged
merged 53 commits into from
Sep 4, 2024
Merged

Upstream merge v2.60.6 #116

merged 53 commits into from
Sep 4, 2024

Commits on Jun 28, 2024

  1. Changing Caplin Finality Checkpoint API response to match spec (erigo…

    …ntech#10944)
    
    Cherry pick PR erigontech#10843 into the release branch
    
    Co-authored-by: Angus Scott <[email protected]>
    yperbasis and angusscott authored Jun 28, 2024
    Configuration menu
    Copy the full SHA
    d983933 View commit details
    Browse the repository at this point in the history
  2. Add zero check in tx.Sender func (erigontech#10737)

    This is an additional check as erigontech#9990 could not be reliably reproduced.
    The conjecture is that at some point there is a race condition somewhere
    related to either storing snapshot file for an older block or updating
    the DB for a more recent block.
    Somewhere the code sets sender value directly to zero or overwrites a
    pointer, leading to sender address being incorrectly assigned to ZERO.
    somnathb1 authored Jun 28, 2024
    Configuration menu
    Copy the full SHA
    b7942be View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. eth/tracers: fix prestate tracer bug with create with value (erigonte…

    …ch#10960)
    
    fixes erigontech#9531
    
    Changes:
    - fixes a bug with the prestate tracer where we were incorrectly
    subtracting the value of a transaction from the "to" address balance in
    the "pre" state (should not be done for CREATE calls)
    - fixes a bug with the prestate tracer where we were incorrectly adding
    the value of a transaction to the "from" address balance in the "pre"
    state (should not be done for CREATE calls)
    - fixes a bug with the prestate tracer where we were incorrectly
    decrementing the nonce value of a transaction's "from" address in the
    "pre" state (should not be done for CREATE calls)
    - adds a test generator that can generate the test files for us based on
    real life transaction hash and node rpc url - check README
    https://github.com/ledgerwatch/erigon/blob/fix-prestate-tracer-on-create-e2/eth/tracers/internal/tracetest/testgenerator/README.md
    - adds test cases
    - fixes some existing test cases that were setup with incorrect data
    taratorio authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    30cae52 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. eth/tracers: add optional includePrecompiles flag to callTracer - def…

    …ault true is preserved (erigontech#10986)
    
    relates to erigontech#9784
    
    - Adds support for an optional `"includePrecompiles"` tracer config
    option for `callTracer` that users can use to control behaviour
    (previous default of including precompile traces is preserved)
    - Adds tests for default and for `"includePrecompiles": false` based on
    https://etherscan.io/tx/0x536434786ace02697118c44abf2835f188bf79902807c61a523ca3a6200bc350
    taratorio authored Jul 3, 2024
    Configuration menu
    Copy the full SHA
    4193e03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7055c2c View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. turbo/jsonrpc: add optional includePrecompiles flag to trace_* apis (e…

    …rigontech#10979)
    
    relates to erigontech#9784
    
    - Adds support for an optional `"includePrecompiles"` tracer config
    option for our OeTracer (OpenEthereum) that users can use to match
    output of debug_* apis with callTracer (by default it includes
    precompiles). Note default spec for OpenEthereum traces are to not
    include precompiles - this is preserved by this PR
    - Note geth has support for `"includePrecompiles"` so we are getting
    more aligned as well -
    https://github.com/ethereum/go-ethereum/blob/master/eth/tracers/native/call_flat.go#L124
    - Adds tests for OeTracer
    taratorio authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    9710e98 View commit details
    Browse the repository at this point in the history
  2. eth/tracers: always pop precompiles stack in callTracer (erigontech#1…

    …1004)
    
    made a mistake in previous PR
    erigontech#10986
    should always pop the precompiles stack for correctness
    taratorio authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    1a050db View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eb7db79 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8d6a173 View commit details
    Browse the repository at this point in the history
  5. Diagnostics: loglevel (erigontech#11015)

    Changed log level
    dvovk authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    1417f89 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fd4f1ac View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b4dd12e View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. qa-tests: add Tip-Tracking test for Gnosis (erigontech#11053)

    This add a Tip-Tracking test on Erigon v2 for Gnosis chain/network
    mriccobene authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    bebd788 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f73ed5 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. PIP-35 for amoy: enforce 25gwei gas config for amoy for erigon 2 (eri…

    …gontech#11078)
    
    Cherry picks erigontech#11077
    
    > A followup PR to erigontech#10119
    which sets the fields `txpool.pricelimit`, `miner.gasprice` and
    `gpo.ignoreprice` to 25gwei only for polygon amoy network.
    > Upon sufficient announcements, it will be generalised to all polygon
    chains later.
    manav2401 authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    f55073f View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

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

Commits on Jul 11, 2024

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

Commits on Jul 12, 2024

  1. Diagnostics: snapshot stage info gathering (erigontech#11105)

    - added snapshot fill from DB state gathering
    - refactor persisted data parsing
    dvovk authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    81c28cd View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    7e56d99 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    318275c View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

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

Commits on Jul 19, 2024

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

Commits on Jul 22, 2024

  1. tracer: add support bailout on evm.create() on e2 (erigontech#11259)

    Add bailout mgt on evm.create() method (it is already mgt on evm.cal())
    lupin012 authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    5577725 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0899d73 View commit details
    Browse the repository at this point in the history
  3. HexOrDecimal - to accept unquoted numbers - in json (e2) (erigontech#…

    …11264)
    
    accept in `genesis.json`:` "nonce": 0,`
    now see: 
    ```
    Fatal: invalid genesis file: json: cannot unmarshal number into Go struct field Genesis.alloc of type *math.HexOrDecimal64
    ```
    
    See also `https://github.com/ethereum/go-ethereum/pull/26758`
    AskAlexSharov authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    f6fcd01 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. PIP-35: enforce 25gwei gas config for all polygon chains for erigon 2 (

    …erigontech#11295)
    
    Cherry-picked from erigontech#11294
    
    > Remove the checks for amoy added previously to prepare for mainnet
    release.
    > Sets `txpool.pricelimit`, `miner.gasprice` and `gpo.ignoreprice` to
    25gwei for all polygon based networks.
    manav2401 authored Jul 23, 2024
    Configuration menu
    Copy the full SHA
    0e88a11 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

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

Commits on Jul 26, 2024

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

Commits on Jul 27, 2024

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

Commits on Jul 29, 2024

  1. Configuration menu
    Copy the full SHA
    217b5a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a37697 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bcd1372 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

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

Commits on Aug 6, 2024

  1. changes from main (erigontech#11492)

    Merging diagnostics code updates from main branch.
    dvovk authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    08447f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4cad1f9 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. Configuration menu
    Copy the full SHA
    9e9e143 View commit details
    Browse the repository at this point in the history
  2. turbo/snapshotsync: Fmt fix (erigontech#11493) (erigontech#11559)

    Removed unnecessary struct type
    
    Co-authored-by: Somnath <[email protected]>
    dvovk and somnathb1 authored Aug 11, 2024
    Configuration menu
    Copy the full SHA
    e42dcfa View commit details
    Browse the repository at this point in the history
  3. diagnostics: updated sys info to include CPU stats (erigontech#11497) (

    …erigontech#11561)
    
    - Added CPU overall info to report file Example output:
    ![Screenshot 2024-08-06 at 09 07
    
    51](https://github.com/user-attachments/assets/834c3f48-ec37-48ea-8688-ee6ea00186a4)
    dvovk authored Aug 11, 2024
    Configuration menu
    Copy the full SHA
    0f8ad6c View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Updated gopsutil version (erigontech#11507) (erigontech#11562)

    - Updated gopsutil version as it has improvements in getting processes
    and memory info.
    dvovk authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    1f6e0e7 View commit details
    Browse the repository at this point in the history
  2. don't use lfs for consensus spec tests (erigontech#11545) (erigontech…

    …#11552)
    
    cherry-pick 391fc4b for E2
    
    needed to unblock PR erigontech#11551
    
    Co-authored-by: Andrew Ashikhmin <[email protected]>
    taratorio and yperbasis authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    83482a4 View commit details
    Browse the repository at this point in the history
  3. stagedsync: add dbg.SaveHeapProfileNearOOM to headers stage (erigonte…

    …ch#11549) (erigontech#11551)
    
    cherry-pick 2a98f6a for E2
    
    relates to:
    erigontech#10734
    erigontech#11387
    
    restart Erigon with `SAVE_HEAP_PROFILE = true` env variable wait until
    we reach 45% or more alloc in stage_headers when "noProgressCounter >=
    5" or "Rejected header marked as bad"
    taratorio authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    a1e7362 View commit details
    Browse the repository at this point in the history
  4. diagnostics: export system info (erigontech#11567)

    Changes:
    - Collecting CPU and Memory usage info about all processes running on
    the machine
    - Running loop 5 times with 2 seconds delay and to calculate average
    - Sort by CPU usage
    - Write result to report file
    - Display totals for CPU and Memory usage to processes table
    - Display CPU usage by cores
    - Print CPU details to table
    
    Cherry pick from:
    - erigontech#11516
    - erigontech#11526
    - erigontech#11537
    - erigontech#11544
    dvovk authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    250c70f View commit details
    Browse the repository at this point in the history
  5. diagnostics: added flags to report (erigontech#11548) (erigontech#11570)

    - added flags which was applied to run command to report
    dvovk authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    f0e6013 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9b19cd5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aa6c7e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Configuration menu
    Copy the full SHA
    2661ad3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60971ea View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

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

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    a9a0508 View commit details
    Browse the repository at this point in the history
  2. Fix go sum

    boyuan-chen committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    32daa84 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Update fork info

    boyuan-chen committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    4221ddd View commit details
    Browse the repository at this point in the history