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

Update/rebased with v1.10.25 #9

Merged
merged 288 commits into from
Oct 3, 2022
Merged
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 3, 2022

  1. cmd/faucet: add sepolia network support (ethereum#25128)

    cmd/faucet: Add Sepolia network support to faucet
    Zachinquarantine authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    b1837fe View commit details
    Browse the repository at this point in the history
  2. trie: fix size accounting in cleaner (ethereum#25007)

    Decrease children size instead of dirties size when marking dirties as cleaned up in trie cleaner
    aaronbuchwald authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    5d74157 View commit details
    Browse the repository at this point in the history
  3. all: remove concept of public/private API definitions (ethereum#25053)

    * internal/ethapi: rename PublicEthereumAPI to EthereumAPI
    
    * eth: rename PublicEthereumAPI to EthereumAPI
    
    * internal/ethapi: rename PublicTxPoolAPI to TxPoolAPI
    
    * internal/ethapi: rename PublicAccountAPI to EthereumAccountAPI
    
    * internal/ethapi: rename PrivateAccountAPI to PersonalAccountAPI
    
    * internal/ethapi: rename PublicBlockChainAPI to BlockChainAPI
    
    * internal/ethapi: rename PublicTransactionPoolAPI to TransactionAPI
    
    * internal/ethapi: rename PublicDebugAPI to DebugAPI
    
    * internal/ethapi: move PrivateDebugAPI methods to DebugAPI
    
    * internal/ethapi: rename PublicNetAPI to NetAPI
    
    * les: rename PrivateLightServerAPI to LightServerAPI
    
    * les: rename PrivateLightAPI to LightAPI
    
    * les: rename PrivateDebugAPI to DebugAPI
    
    * les: rename PublicDownloaderAPI to DownloaderAPI
    
    * eth,les: rename PublicFilterAPI to FilterAPI
    
    * eth: rename PublicMinerAPI to MinerAPI
    
    * eth: rename PublicDownloaderAPI to DownloaderAPI
    
    * eth: move PrivateMinerAPI methods to MinerAPI
    
    * eth: rename PrivateAdminAPI to AdminAPI
    
    * eth: rename PublicDebugAPI to DebugAPI
    
    * eth: move PrivateDebugAPI methods to DebugAPI
    
    * node: rename publicAdminAPI to adminAPI
    
    * node: move privateAdminAPI methods to adminAPI
    
    * node: rename publicWeb3API to web3API
    
    * eth,internal/ethapi: sync comments with previous renamings
    lightclient authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    21c5a14 View commit details
    Browse the repository at this point in the history
  4. cmd/geth: drop geth js command (ethereum#25000)

    * cmd/geth: drop js command
    
    * cmd: simplify ipc path determination for attach
    
    * Add deprecation warning for js
    
    * rm testdata for exec
    
    * fix account unlock test cases
    
    * Update cmd/geth/consolecmd.go
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    * fix
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    ef5667a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1d8f0e1 View commit details
    Browse the repository at this point in the history
  6. eth, miner: retrieve mining state from live database (ethereum#25139)

    * miner: retrieve mining state from live database
    
    * eth/catalyst: ignore stale fcu events from cl
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    def5bf0 View commit details
    Browse the repository at this point in the history
  7. core: fix typo in txpool (ethereum#25149)

    Fix typo in txPool truncateQueue comment
    aaronbuchwald authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f3fbe20 View commit details
    Browse the repository at this point in the history
  8. go.mod: upgrade to latest goleveldb (ethereum#25067)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    dedf584 View commit details
    Browse the repository at this point in the history
  9. eth/tracers: optimize goja buffer conversion (ethereum#25156)

    This changes the []byte <-> Uint8Array conversion to use an
    ArrayBuffer, avoiding inefficient copying of the slice data in Goja.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    977f2f9 View commit details
    Browse the repository at this point in the history
  10. eth: fix typo (ethereum#25161)

    int88 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e897f39 View commit details
    Browse the repository at this point in the history
  11. internal/ethapi: always return chain id (ethereum#25166)

    The error was introduced in PR ethereum#21686, but there is no good reason to enforce sync
    in this method, and it causes issues with EL/CL integration.
    lightclient authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    8f54f89 View commit details
    Browse the repository at this point in the history
  12. internal/ethapi: add note about eth_chainId compatibility with EIP-695 (

    ethereum#25168)
    
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    91363aa View commit details
    Browse the repository at this point in the history
  13. all: remove public field from rpc.API (ethereum#25059)

    all: remove public field from rpc.API
    lightclient authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    5a868aa View commit details
    Browse the repository at this point in the history
  14. cmd: migrate to urfave/cli/v2 (ethereum#24751)

    This change updates our urfave/cli dependency to the v2 branch of the library.
    There are some Go API changes in cli v2:
    
    - Flag values can now be accessed using the methods ctx.Bool,
      ctx.Int, ctx.String, ... regardless of whether the flag is 'local' or
      'global'.
    
    - v2 has built-in support for flag categories. Our home-grown category
      system is removed and the categories of flags are assigned as part of
      the flag definition.
    
    For users, there is only one observable difference with cli v2: flags must now
    strictly appear before regular arguments. For example, the following command is
    now invalid:
    
       geth account import mykey.json --password file.txt
    
    Instead, the command must be invoked as follows:
    
       geth account import --password file.txt mykey.json
    willianpaixao authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    48dea7f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ab29799 View commit details
    Browse the repository at this point in the history
  16. cmd/geth, p2p: add support for custom discovery UDP port (ethereum#24979

    )
    
    This adds a new flag to set the discovery port to be different from
    the TCP listener port.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a8cd912 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    26f0888 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e81f328 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    298a9b7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    071ec40 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    d20c72e View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    b8bea1e View commit details
    Browse the repository at this point in the history
  23. consensus/beacon: check that only the latest pow block is valid ttd b…

    …lock (ethereum#25187)
    
    * consensus/beacon: check that only the latest pow block is valid ttd block
    
    * consensus/beacon: move verification to async function
    
    * consensus/beacon: fix verifyTerminalPoWBlock, add test cases
    
    * consensus/beacon: cosmetic changes
    
    * consensus/beacon: apply karalabe's fixes
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a2ce563 View commit details
    Browse the repository at this point in the history
  24. build: fix auto-completion scripts and include them in .deb package (e…

    …thereum#25195)
    
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    006a726 View commit details
    Browse the repository at this point in the history
  25. build: upgrade to golangci-lint v1.46.2 (ethereum#25202)

    This upgrade is required to fix lint issues with urfave/cli/v2, which
    uses generics when built with Go 1.18
    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9f75b64 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    bf7c078 View commit details
    Browse the repository at this point in the history
  27. params: go-ethereum v1.10.20 stable

    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    440f09f View commit details
    Browse the repository at this point in the history
  28. params: begin v1.10.21 release cycle

    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9f41b99 View commit details
    Browse the repository at this point in the history
  29. common/prque: fix typo

    dbadoy authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    ba569e1 View commit details
    Browse the repository at this point in the history
  30. eth/catalyst: disallow importing blocks via newPayload during snap sy…

    …nc (ethereum#25210)
    
    * eth/catalyst: disallow importing blocks via newPayload during snap sync
    
    * eth/catalyst: make tests pass by using full sync only
    
    * eth/catalysts: make the import delay a bit cleaner
    
    * eth/catalyst: fix typo
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a4100e9 View commit details
    Browse the repository at this point in the history
  31. Replace fmt.Errorf with errors.New in abi argument (ethereum#25181)

    Replace unnecessary fmt.Errorf with errors.New in accounts/abi/argument.go
    aaronbuchwald authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    39dca17 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    1f4787c View commit details
    Browse the repository at this point in the history
  33. consensus/beacon: copy td value so we can modify it (ethereum#25230)

    * consensus/beacon: copy td value so we can modify it
    
    * consensus/beacon: copy td value so we can modify it
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3a6227f View commit details
    Browse the repository at this point in the history
  34. core: allow external code to set the block validator for malicious te…

    …sts (ethereum#25119)
    
    * core: don't validate state
    
    * core: allow external validator
    
    * core: revert
    
    * core: comments
    
    * Update blockchain_reader.go
    
    * core: move SetValidator to blockchain.go
    
    * core: rename method
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    433169d View commit details
    Browse the repository at this point in the history
  35. core: apply ttd override to uninitialized db (ethereum#25136)

    * core: apply ttd override to genesis block
    
    * core: apply overrides properly
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    cdfdd99 View commit details
    Browse the repository at this point in the history
  36. signer/core/apitypes: support primitive types int96/uint96 (ethereum#…

    …25105)
    
    I have a EIP712 typehash using uint96, but it's currently not supported
    by go-ethereum. This change fixes it.
    spkjp authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    58bf65f View commit details
    Browse the repository at this point in the history
  37. cmd/geth, cmd/devp2p: fix some cli parsing issues (ethereum#25234)

    * cmd/geth: add some missing argument count checks
    
    * internal/flags: skip cmds with no action func in MigrateGlobalFlags
    
    * internal/flags: add Merge
    
    * cmd/devp2p: re-add listener config flags in discv4 commands
    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    d9e6667 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    0dfb555 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    f281994 View commit details
    Browse the repository at this point in the history
  40. go.mod: updated logfmt dependency (ethereum#25231)

    This fixes an issue in abigen tests with go 1.17.
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3e54a44 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    a263aa9 View commit details
    Browse the repository at this point in the history
  42. trie: fix typo in comment (ethereum#25241)

    paralallel -> parallel
    aaronbuchwald authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    0c21d87 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    999a632 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    b290f13 View commit details
    Browse the repository at this point in the history
  45. rpc: add graceful shutdown timeout for HTTP server (ethereum#25258)

    This change ensures the HTTP server will always terminate within
    at most 5s, even when all connections are busy and do not become
    idle.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    da9f36a View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    236b95c View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    8d2f2b4 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    a1736d6 View commit details
    Browse the repository at this point in the history
  49. eth/tracers: add initial revertReasonTracer tracer (ethereum#25265)

    Adds a native tracer that returns that in case of failure returns the error message or the revert reason of a transaction.
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a19b904 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    3992dd0 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    01d5e0e View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    3b18e83 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    563d3b3 View commit details
    Browse the repository at this point in the history
  54. accounts/abi/bind/backends: return hash of new blocks (ethereum#25163)

    Co-authored-by: Jens <jmw.1906@gmx.de>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    fad30bb View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    1f76be1 View commit details
    Browse the repository at this point in the history
  56. internal/ethapi: error if tx args includes chain id that doesn't matc…

    …h local (ethereum#25157)
    
    * internal/ethapi: error if tx args includes chain id that doesn't match local
    
    * internal/ethapi: simplify code a bit
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    690083a View commit details
    Browse the repository at this point in the history
  57. core: remove lock in BlockChain.ExportN (ethereum#25254)

    * Remove locking in (*BlockChain).ExportN
    
    Since ExportN is read-only, it shouldn't need the lock. (?)
    
    * Add hash check to detect reorgs during export.
    
    * fix check order
    
    * Update blockchain.go
    
    * Update blockchain.go
    
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1e68254 View commit details
    Browse the repository at this point in the history
  58. core: prevent negative fee during RPC calls (ethereum#25214)

    During RPC calls such as eth_call and eth_estimateGas, st.evm.Config.NoBaseFee is set
    which allows the gas price to be below the base fee. This results the tip being negative,
    and balance being subtracted from the coinbase instead of added to it, which results in a
    potentially negative coinbase balance interestingly. This can't happen during normal chain
    processing as outside of RPC calls the gas price is required to be at least the base fee,
    as NoBaseFee is false.
    
    This change prevents this behavior by disabling fee payment when the fee is not set.
    
    Co-authored-by: lightclient@protonmail.com <lightclient@protonmail.com>
    Co-authored-by: Felix Lange <fjl@twurst.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e396190 View commit details
    Browse the repository at this point in the history
  59. core, les, eth: port snap sync changes (ethereum#24898)

    core, eth, les, trie: rework snap sync
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3382d7f View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    28f657c View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    fc922f8 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    17b2d75 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    3998b05 View commit details
    Browse the repository at this point in the history
  64. accounts/abi: substitude arg%d to the range keyword (ethereum#25307)

    * accounts/abi: substitude arg%d to the range keyword
    
    * support more keywords
    
    * review feedback
    gballet authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    fd6634e View commit details
    Browse the repository at this point in the history
  65. params: Add Shanghai and Cancun blocks (ethereum#25305)

    * params: Add Shangai and Cancun blocks
    
    * fix copy/paste error
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    * fix typo in Shanghai name
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3119530 View commit details
    Browse the repository at this point in the history
  66. cmd/puppeth: remove support for exporting non-Geth genesis configurat…

    …ions (ethereum#25329)
    
    * cmd/puppeth: remove support for exporting non-Geth genesis configurations
    
    * remove unused function
    jwasinger authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    7125601 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    7691ad7 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    53dddf0 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    37bd173 View commit details
    Browse the repository at this point in the history
  70. cmd/geth: eth/catalyst: enable authrpc by default (ethereum#25152)

    * cmd/geth: eth/catalyst: enable authrpc by default
    
    * eth/catalyst: rename catalyst -> Engine API in logs
    
    * eth/catalyst: don't panic
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    33ab209 View commit details
    Browse the repository at this point in the history
  71. deps: update goleveldb

    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9926e0b View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    acff41e View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    03d0801 View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    37c5c91 View commit details
    Browse the repository at this point in the history
  75. p2p/netutil: minor code cosmetic

    Signed-off-by: Abirdcfly <fp544037857@gmail.com>
    Abirdcfly authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3c06ce0 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    46af5df View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    1ccaae2 View commit details
    Browse the repository at this point in the history
  78. all: add whitespace linter (ethereum#25312)

    * golangci: typo
    
    Signed-off-by: Delweng <delweng@gmail.com>
    
    * golangci: add whietspace
    
    Signed-off-by: Delweng <delweng@gmail.com>
    
    * *: rm whitesapce using golangci-lint
    
    Signed-off-by: Delweng <delweng@gmail.com>
    
    * cmd/puppeth: revert accidental resurrection
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e19dc49 View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    fd69884 View commit details
    Browse the repository at this point in the history
  80. eth: support bubbling up bad blocks from sync to the engine API (ethe…

    …reum#25190)
    
    * eth: support bubbling up bad blocks from sync to the engine API
    
    * eth/catalyst: fix typo
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    
    * eth/catalyst: fix typo
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    
    * Update eth/catalyst/api.go
    
    * eth/catalyst: when forgetting bad hashes, also forget descendants
    
    * eth/catalyst: minor bad block tweaks for resilience
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    b092971 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    fc1b84f View commit details
    Browse the repository at this point in the history
  82. core: eth: rpc: implement safe rpc block (ethereum#25165)

    * core: eth: rpc: implement safe rpc block
    
    * core: fix setHead, panics
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    49e7df6 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    c7c6a58 View commit details
    Browse the repository at this point in the history
  84. params: go-ethereum v1.10.21 stable

    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    21f22a1 View commit details
    Browse the repository at this point in the history
  85. params: begin v1.10.22 release cycle

    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    713c6a7 View commit details
    Browse the repository at this point in the history
  86. core, trie, eth, cmd: rework preimage store (ethereum#25287)

    * core, trie, eth, cmd: rework preimage store
    
    * trie: address comment
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    64e2279 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    2548c86 View commit details
    Browse the repository at this point in the history
  88. node: set JWT expiry to 60 seconds (ethereum#25416)

    * node: set JWT expiry to 60 seconds
    
    * node: rename var
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3f6e0c7 View commit details
    Browse the repository at this point in the history
  89. eth/catalyst: return syncing not accepted (ethereum#25414)

    * eth/catalyst: return syncing not accepted
    
    * eth/catalyst: fix test
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    37f3fd0 View commit details
    Browse the repository at this point in the history
  90. eth/catalyst: return 0x0 if latestvalid is pow block (ethereum#25423)

    * eth/catalyst: return 0x0 if latestvalid is pow block
    
    * eth/catalyst: return 0x0 if latestvalid is pow block
    
    * eth/catalyst: fix header retrieval, fix sign check
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a9e0aec View commit details
    Browse the repository at this point in the history
  91. ethereum, ethclient: add FeeHistory support (ethereum#25403)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    fba0d59 View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    120e58d View commit details
    Browse the repository at this point in the history
  93. cm/puppeth: fix crash when of ethstats specifier doesn't contain : (e…

    …thereum#25405)
    
    
    Signed-off-by: Delweng <delweng@gmail.com>
    jsvisa authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    878d50a View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    2e74c2f View commit details
    Browse the repository at this point in the history
  95. common/compiler: json unmarshalling error checks (ethereum#25449)

    complier/solidity:add json.Unmarshal err check
    henry-0 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    fbdd8a3 View commit details
    Browse the repository at this point in the history
  96. cmd, core, eth, les, params: add merge-passed chain config (ethereum#…

    …24538)
    
    * cmd, core, eth, les, params: add merge-passed chain config
    
    * eth/catalyst, params: add various warning on malfunctioning beacons
    
    * eth/catalyst: fix warning for beacons without transition exchanges
    karalabe authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    4fed854 View commit details
    Browse the repository at this point in the history
  97. eth: fix typo in catalyst api (ethereum#25460)

    eth: fix typo
    s1na authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    290c13a View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    a2cd860 View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    aea73d8 View commit details
    Browse the repository at this point in the history
  100. consensus/ethash: remove temp files created during DAG generation (et…

    …hereum#25381)
    
    This makes it remove not only the actual DAG file, but also the temporary file
    which the DAG data is written to while generating.
    manoj398 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1391088 View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    3bc6a38 View commit details
    Browse the repository at this point in the history
  102. node, rpc: add ReadHeaderTimeout config option (ethereum#25338)

    This change makes http.Server.ReadHeaderTimeout configurable separately
    from ReadTimeout for RPC servers. The default is set to the same as
    ReadTimeout, which in order to cause no change in existing deployments.
    Tristan-Wilson authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    50d275d View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    26db36b View commit details
    Browse the repository at this point in the history
  104. core: preallocate batch size in bloomIndexer (ethereum#25289)

    This change reduces allocations when committing bloombits indexes
    by creating the database batch with a larger initial size.
    dbadoy authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    4a0c4ea View commit details
    Browse the repository at this point in the history
  105. internal/ethapi: don't estimate gas if no limit provided in eth_creat…

    …eAccessList (ethereum#25467)
    
    Because the goal of eth_createAccessList is providing the caller with the largest-possible
    access list, it's generally not important that the gas limit used by the tracer will match the usage
    of the call exactly. Avoiding the gas estimation step is a performance improvement. As long as the
    call does not branch based on gas limit, the returned access list will be accurate.
    lightclient authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    c4e756d View commit details
    Browse the repository at this point in the history
  106. graphql: embed *Resolver instead of backend interface (ethereum#25468)

    This creates some infrastructure to share resources between graphql
    API objects.
    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    7c0f7ea View commit details
    Browse the repository at this point in the history
  107. node: remove noop path.Join (ethereum#25475)

    Signed-off-by: Delweng <delweng@gmail.com>
    jsvisa authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    896efd8 View commit details
    Browse the repository at this point in the history
  108. core, trie: rework trie committer (ethereum#25320)

    * all: rework trie and trie committer
    
    * all: get rid of internal cache in trie
    
    * all: fixes
    
    * trie: polish
    
    * core, trie: address comments
    
    * trie: fix imports
    
    * core/state: address comments
    
    * core/state/snapshot: polish
    
    * trie: remove unused code
    
    * trie: update tests
    
    * trie: don't set db as nil
    
    * trie: address comments
    
    * trie: unskip test
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a562039 View commit details
    Browse the repository at this point in the history
  109. core: use TryGetAccount to read what TryUpdateAccount has written (et…

    …hereum#25458)
    
    * core: use TryGetAccount to read where TryUpdateAccount has been used to write
    
    * Gary's review feedback
    
    * implement Gary's suggestion
    
    * fix bug + rename NewSecure into NewStateTrie
    
    * trie: add backwards-compatibility aliases for SecureTrie
    
    * Update database.go
    
    * make the linter happy
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1545c28 View commit details
    Browse the repository at this point in the history
  110. cmd, core, ethdb, node: move chain freezer one folder deeper (ethereu…

    …m#25487)
    
    * cmd, core, ethdb, node: create chain freezer in a sub folder
    
    * core/rawdb: remove unused code
    
    * core, ethdb, node: add AncientDatadir API back
    
    * cmd, core: extend freezer info dump for sub-ancient-store
    
    * core/rawdb: rework freezer inspector
    
    * core/rawdb: address comments from Peter
    
    * core/rawdb: fix build issue
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e73c357 View commit details
    Browse the repository at this point in the history
  111. Configuration menu
    Copy the full SHA
    d57aa6d View commit details
    Browse the repository at this point in the history
  112. core: fix uncle creation in TestFastVsFullChains (ethereum#25476)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    0c4f7c3 View commit details
    Browse the repository at this point in the history
  113. Configuration menu
    Copy the full SHA
    0da1cc5 View commit details
    Browse the repository at this point in the history
  114. eth/tracers: add onlyTopCall option to callTracer (ethereum#25430)

    This PR allows users to pass in a config object directly to the tracers. Previously only the struct logger was configurable.
    
    It also adds an option to the call tracer which if enabled makes it ignore any subcall and collect only information about the top-level call. See ethereum#25419 for discussion.
    
    The tracers will silently ignore if they are passed a config they don't care about.
    s1na authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    d4d756d View commit details
    Browse the repository at this point in the history
  115. all: cleanup the APIs for initializing genesis (ethereum#25473)

    * all: polish tests
    
    * core: apply feedback from Guillaume
    
    * core: fix comment
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3413ae6 View commit details
    Browse the repository at this point in the history
  116. signer/rules: register clef api properly when rules are used (ethereu…

    …m#25455)
    
    signer/rules: register clef api properly when rules are used, fixes ethereum#25298
    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    2606de3 View commit details
    Browse the repository at this point in the history
  117. Configuration menu
    Copy the full SHA
    b12a8c4 View commit details
    Browse the repository at this point in the history
  118. build: add static linking support (ethereum#25492)

    This adds support for building statically-linked executables using ci.go.
    
    Static linking is enabled by default in Docker builds, making it possible to
    use the geth executable in any Docker image, regardless of the Linux
    distribution the Dockerfile is based on.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    37b9060 View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    1e4b779 View commit details
    Browse the repository at this point in the history
  120. internal/ethapi: rework setDefaults for tx args so fee logic is separ…

    …ate (ethereum#25197)
    
    
    Co-authored-by: bobpkr <bob.p@krustuniverse.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    29642fd View commit details
    Browse the repository at this point in the history
  121. core/genesis: remove calaverasAllocData (ethereum#25516)

    core/genesis: calaverasAllocData no longer used
    ycyraum authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    bd10daa View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    488c2d8 View commit details
    Browse the repository at this point in the history
  123. params: set mainnet terminal total difficulty for the merge (ethereum…

    …#25528)
    
    * params: set mainnet ttd to 58_750_000_000_000_000_000_000
    
    * params: set mainnet ttd to 58_750_000_000_000_000_000_000
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f5bd236 View commit details
    Browse the repository at this point in the history
  124. core, trie: flush preimages to db on blockchain close (ethereum#25533)

    * core, trie: flush preimages to db on database close
    
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    
    * rename Close to CommitPreimages for clarity
    
    * core, trie: nitpick fixes
    
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    303937e View commit details
    Browse the repository at this point in the history
  125. core/state, trie, light: add a TryDeleteAccount method (ethereum#25531)

    * core/state, trie, light: Add a DeleteAccount method
    
    * review feedback
    
    * Update database.go
    
    * pr triage feedback
    
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    2b4c3d2 View commit details
    Browse the repository at this point in the history
  126. core: make tx journal check and open atomic (ethereum#25530)

    * core: reduce system call about `os`
    
    * avoid deprecated method
    dbadoy authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1266e5a View commit details
    Browse the repository at this point in the history
  127. cmd. core: save preimages on genesis creation (ethereum#25538)

    force preimage dump for genesis
    gballet authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1220c7c View commit details
    Browse the repository at this point in the history
  128. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1388091 View commit details
    Browse the repository at this point in the history
  129. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    377321d View commit details
    Browse the repository at this point in the history
  130. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    74424f7 View commit details
    Browse the repository at this point in the history
  131. Configuration menu
    Copy the full SHA
    bf9efd3 View commit details
    Browse the repository at this point in the history
  132. Configuration menu
    Copy the full SHA
    45296b8 View commit details
    Browse the repository at this point in the history
  133. eth, les: unlock downloader peerSet if there's an error (ethereum#25546)

    Unlock peerSet if there's an error in the downloader
    jtraglia authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1c95ed3 View commit details
    Browse the repository at this point in the history
  134. cmd/geth: parse uint64 value with ParseUint instead of Atoi (ethereum…

    …#25545)
    
    Parse uint64 value with ParseUint instead of Atoi
    jtraglia authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    8aedf92 View commit details
    Browse the repository at this point in the history
  135. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f10eb7a View commit details
    Browse the repository at this point in the history
  136. 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 <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    16ed5dc View commit details
    Browse the repository at this point in the history
  137. accounts/abi: fix set function (ethereum#25477)

    * accounts/abi: fix set function
    
    * don't break things
    
    * update test
    zhiqiangxu authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    6311efa View commit details
    Browse the repository at this point in the history
  138. Configuration menu
    Copy the full SHA
    4efd240 View commit details
    Browse the repository at this point in the history
  139. 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 <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    bca97df View commit details
    Browse the repository at this point in the history
  140. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a51aa74 View commit details
    Browse the repository at this point in the history
  141. 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 <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    fb4049d View commit details
    Browse the repository at this point in the history
  142. params: release go-ethereum v1.10.22

    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    c33f17a View commit details
    Browse the repository at this point in the history
  143. params: begin v1.10.23 release cycle

    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    07cb931 View commit details
    Browse the repository at this point in the history
  144. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    beedeb5 View commit details
    Browse the repository at this point in the history
  145. Configuration menu
    Copy the full SHA
    408499f View commit details
    Browse the repository at this point in the history
  146. Configuration menu
    Copy the full SHA
    68e0c76 View commit details
    Browse the repository at this point in the history
  147. params: release Geth v1.10.23

    karalabe authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f9461fc View commit details
    Browse the repository at this point in the history
  148. Configuration menu
    Copy the full SHA
    0d39f69 View commit details
    Browse the repository at this point in the history
  149. Configuration menu
    Copy the full SHA
    98cd387 View commit details
    Browse the repository at this point in the history
  150. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    b5bc4ba View commit details
    Browse the repository at this point in the history
  151. accounts/abi/bind: add const for tx fee elasticity multiplier (ethere…

    …um#25504)
    
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9207fdf View commit details
    Browse the repository at this point in the history
  152. all: remove duplicate word in comments (ethereum#25618)

    Signed-off-by: Abirdcfly <fp544037857@gmail.com>
    
    Signed-off-by: Abirdcfly <fp544037857@gmail.com>
    Abirdcfly authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e94a67c View commit details
    Browse the repository at this point in the history
  153. Configuration menu
    Copy the full SHA
    3c4c1b4 View commit details
    Browse the repository at this point in the history
  154. Configuration menu
    Copy the full SHA
    0195af7 View commit details
    Browse the repository at this point in the history
  155. docs: specify execution client (ethereum#25566)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9fc7a5a View commit details
    Browse the repository at this point in the history
  156. Configuration menu
    Copy the full SHA
    8596a10 View commit details
    Browse the repository at this point in the history
  157. Configuration menu
    Copy the full SHA
    0b8234b View commit details
    Browse the repository at this point in the history
  158. Configuration menu
    Copy the full SHA
    4afa6ab View commit details
    Browse the repository at this point in the history
  159. all: move genesis initialization to blockchain (ethereum#25523)

    * all: move genesis initialization to blockchain
    
    * core: add one more check
    
    * core: fix tests
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    fd920dc View commit details
    Browse the repository at this point in the history
  160. eth/catalyst: adjust eta for themerge (ethereum#25601)

    * eth/catalyst: adjust eta for themerge
    
    * squash
    
    * squash
    
    * eth/catalyst: address review concerns
    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1a418e3 View commit details
    Browse the repository at this point in the history
  161. Configuration menu
    Copy the full SHA
    e5208d0 View commit details
    Browse the repository at this point in the history
  162. graphql: return correct logs for tx (ethereum#25612)

    * graphql: fix tx logs
    
    * minor
    
    * Use optimized search for selecting tx logs
    s1na authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a8c6fde View commit details
    Browse the repository at this point in the history
  163. Configuration menu
    Copy the full SHA
    07a1402 View commit details
    Browse the repository at this point in the history
  164. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f73f168 View commit details
    Browse the repository at this point in the history
  165. eth/catalyst: prevent division by zero (ethereum#25654)

    eth/catalyst: prevent diff by zero
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    d63fc01 View commit details
    Browse the repository at this point in the history
  166. Configuration menu
    Copy the full SHA
    5bda9e6 View commit details
    Browse the repository at this point in the history
  167. Configuration menu
    Copy the full SHA
    711881f View commit details
    Browse the repository at this point in the history
  168. Configuration menu
    Copy the full SHA
    6784c38 View commit details
    Browse the repository at this point in the history
  169. mobile: register filter APIs (ethereum#25642)

    This fixes a regression introduced in PR ethereum#25459.
    jakub-freebit authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    11b6a2b View commit details
    Browse the repository at this point in the history
  170. README.md: improve grammar (ethereum#25646)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f64091f View commit details
    Browse the repository at this point in the history
  171. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    06a8762 View commit details
    Browse the repository at this point in the history
  172. eth/fetcher: throttle peers which deliver many invalid transactions (e…

    …thereum#25573)
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    5b120e8 View commit details
    Browse the repository at this point in the history
  173. 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 <jgutow@optimism.io>
    Co-authored-by: Felix Lange <fjl@twurst.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    34ff679 View commit details
    Browse the repository at this point in the history
  174. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    cf1d8a9 View commit details
    Browse the repository at this point in the history
  175. Configuration menu
    Copy the full SHA
    dd62d13 View commit details
    Browse the repository at this point in the history
  176. Configuration menu
    Copy the full SHA
    483b4c2 View commit details
    Browse the repository at this point in the history
  177. 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 and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    022a285 View commit details
    Browse the repository at this point in the history
  178. Configuration menu
    Copy the full SHA
    bdf74d4 View commit details
    Browse the repository at this point in the history
  179. Configuration menu
    Copy the full SHA
    cf4c60e View commit details
    Browse the repository at this point in the history
  180. Configuration menu
    Copy the full SHA
    a917052 View commit details
    Browse the repository at this point in the history
  181. core/vm: rename RANDOM to PREVRANDAO (ethereum#25691)

    See: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4399.md
    
    >  This EIP supplants the semantics of the return value of existing DIFFICULTY (0x44) opcode and renames the opcode to PREVRANDAO (0x44).
    MariusVanDerWijden authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    4fe7177 View commit details
    Browse the repository at this point in the history
  182. all: cleanup tests (ethereum#25641)

    Follow-up to PR ethereum#25523 to cleanup all relevant tests.
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    566b3f7 View commit details
    Browse the repository at this point in the history
  183. eth, les: rework chain tracer (ethereum#25143)

    This PR simplifies the logic of chain tracer and also adds the unit tests.
    
    The most important change has been made in this PR is the state management. Whenever a tracing state is acquired there is a corresponding release function be returned as well. It must be called once the state is used up, otherwise resource leaking can happen.
    
    And also the logic of state management has been simplified a lot. Specifically, the state provider(eth backend, les backend) should ensure the state is available and referenced. State customers can use the state according to their own needs, or build other states based on the given state. But once the release function is called, there is no guarantee of the availability of the state.
    
    
    Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    40a11aa View commit details
    Browse the repository at this point in the history
  184. Configuration menu
    Copy the full SHA
    ff365ef View commit details
    Browse the repository at this point in the history
  185. trie: update comments + err check for preimages (ethereum#25672)

    This PR includes minor updates to comments in trie/committer that reference insertion to the db, and adds an err != nil check for the return value of preimages.commit.
    darioush authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    cd9c139 View commit details
    Browse the repository at this point in the history
  186. eth/protocols/snap: throttle trie heal requests when peers DoS us (et…

    …hereum#25666)
    
    * eth/protocols/snap: throttle trie heal requests when peers DoS us
    
    * eth/protocols/snap: lower heal throttle log to debug
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    * eth/protocols/snap: fix comment
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    6bb7701 View commit details
    Browse the repository at this point in the history
  187. p2p/msgrate: be more lenient when calculating 'mean' (ethereum#25653)

    The p2p msgrate tracker is a thing which tries to estimate some mean round-trip times. However, it did so in a very curious way: if a node had 200 peers, it would sort their 200 respective rtt estimates, and then it would pick item number 2 as the mean. So effectively taking third fastest and calling it mean. This probably works "ok" when the number of peers are low (there are other factors too, such as ttlScaling which takes some of the edge off this) -- however when the number of peers is high, it becomes very skewed.
    
    This PR instead bases the 'mean' on the square root of the length of the list. Still pretty harsh, but a bit more lenient.
    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    219849d View commit details
    Browse the repository at this point in the history
  188. rpc: improve error codes for internal server errors (ethereum#25678)

    This changes the error code returned by the RPC server in certain situations:
    
    - handler panic: code -32603
    - result marshaling error: code -32603
    - attempt to subscribe via HTTP: code -32001
    
    In all of the above cases, the server previously returned the default error
    code -32000.
    
    Co-authored-by: Nicholas Zhao <nicholas.zhao@gmail.com>
    Co-authored-by: Felix Lange <fjl@twurst.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f11ae6a View commit details
    Browse the repository at this point in the history
  189. core: place a cap on reorglogs (ethereum#25711)

    This PR makes the event-sending for deleted and new logs happen in batches, to prevent OOM situation due to large reorgs. 
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    cd902b4 View commit details
    Browse the repository at this point in the history
  190. build: upgrade to go 1.19 (ethereum#25726)

    This changes the CI / release builds to use the latest Go version. It also
    upgrades golangci-lint to a newer version compatible with Go 1.19.
    
    In Go 1.19, godoc has gained official support for links and lists. The
    syntax for code blocks in doc comments has changed and now requires a
    leading tab character. gofmt adapts comments to the new syntax
    automatically, so there are a lot of comment re-formatting changes in this
    PR. We need to apply the new format in order to pass the CI lint stage with
    Go 1.19.
    
    With the linter upgrade, I have decided to disable 'gosec' - it produces
    too many false-positive warnings. The 'deadcode' and 'varcheck' linters
    have also been removed because golangci-lint warns about them being
    unmaintained. 'unused' provides similar coverage and we already have it
    enabled, so we don't lose much with this change.
    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    2ca31a1 View commit details
    Browse the repository at this point in the history
  191. Configuration menu
    Copy the full SHA
    e0735c9 View commit details
    Browse the repository at this point in the history
  192. Configuration menu
    Copy the full SHA
    7fdc6d0 View commit details
    Browse the repository at this point in the history
  193. Configuration menu
    Copy the full SHA
    1ddbe2a View commit details
    Browse the repository at this point in the history
  194. graphql: fixes missing tx logs (ethereum#25745)

    * graphql: fix tx logs
    
    * graphql: refactor test service setup
    
    * graphql: add test for tx logs
    s1na authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e0233dd View commit details
    Browse the repository at this point in the history
  195. cmd/geth: add a verkle subcommand (ethereum#25718)

    * cmd/geth: add a verkle subcommand
    
    * fix copyright year
    
    * remove unused command parameters
    
    * check that the output file was successfully written to
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    * cmd/geth: goimports fix
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    cbbb8b7 View commit details
    Browse the repository at this point in the history
  196. node: fix HTTP server always force closing (ethereum#25755)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    4619010 View commit details
    Browse the repository at this point in the history
  197. Configuration menu
    Copy the full SHA
    c3dc7df View commit details
    Browse the repository at this point in the history
  198. Configuration menu
    Copy the full SHA
    4411196 View commit details
    Browse the repository at this point in the history
  199. les/catalyst/api: add support for ExchangeTransitionConfigurationV1 (e…

    …thereum#25752)
    
    This method is missing in light client mode and breaks consensus clients
    that require a valid response.
    pinkiebell authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    2b17546 View commit details
    Browse the repository at this point in the history
  200. params: set TerminalTotalDifficultyPassed to true (ethereum#25769)

    * params: set TerminalTotalDifficultyPassed to true
    
    * Update params/config.go
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    6cc36a7 View commit details
    Browse the repository at this point in the history
  201. Configuration menu
    Copy the full SHA
    a0bbdd9 View commit details
    Browse the repository at this point in the history
  202. Configuration menu
    Copy the full SHA
    16dc2d0 View commit details
    Browse the repository at this point in the history
  203. crypto/bls12381: docfix of g1 Affine (ethereum#25729)

    bls12381: docfix of g1 Affine.
    georgercarder authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    fed352d View commit details
    Browse the repository at this point in the history
  204. internal/ethapi: return error when requesting invalid trie key (ether…

    …eum#25762)
    
    This change makes eth_getProof and eth_getStorageAt return an error when
    the argument contains invalid hex in storage keys.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    71cda4f View commit details
    Browse the repository at this point in the history
  205. core: don't cache zero nonce in txNoncer (ethereum#25603)

    This changes the nonce cache used by TxPool to not store cached
    nonces for non-existing accounts.
    dbadoy authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    228e8a9 View commit details
    Browse the repository at this point in the history
  206. core: more compact bad block report (ethereum#25714)

    This shortens the chain config summary in bad block reports,
    and adds go-ethereum version information as well.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3a4aba6 View commit details
    Browse the repository at this point in the history
  207. core: move build version reading to its own package (ethereum#25806)

    This fixes the build with Go 1.17, which does not have BuildInfo.Settings yet.
    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    dadd639 View commit details
    Browse the repository at this point in the history
  208. Configuration menu
    Copy the full SHA
    50e36fb View commit details
    Browse the repository at this point in the history
  209. core/vm: return copy of input slice in identity precompile, avoid ret…

    …urndata copy (ethereum#25183)
    
    * core/vm: return copy of input slice in identity precompile.  don't deep copy return data slice upon call completion
    
    * make use of common.CopyBytes
    jwasinger authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9a16cdd View commit details
    Browse the repository at this point in the history
  210. core/blockchain: downgrade tx indexing and unindexing logs (ethereum#…

    …25832)
    
    core/blockchain: downgrade tx indexing and unindexing logs from info to debug
    
    If a user has a finite tx lookup limit, they will see an "unindexing" info level log each time a block is imported. This information might help a user understand that they are removing the index each block and some txs may not be retrievable by hash, but overall it is generally more of a nuisance than a benefit. This change downgrades the log to a debug log.
    lightclient authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    5e54b81 View commit details
    Browse the repository at this point in the history
  211. eth/tracers: fix trace config for TraceCall (ethereum#25821)

    Co-authored-by:  AtomicAzzaz  <AtomicAzzaz@users.noreply.github.com>
    Co-authored-by:  ewile <ewile@users.noreply.github.com>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    96f1f47 View commit details
    Browse the repository at this point in the history
  212. eth/catalyst: add locking around newpayload (ethereum#25816)

    Sometimes we get stuck on db compaction, and the CL re-issues the "same" command to us multiple times. Each request get stuck on the same place, in the middle of the handler.
    
    This changes makes it so we do not reprocess the same payload, but instead detects it early.
    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    3450705 View commit details
    Browse the repository at this point in the history
  213. Configuration menu
    Copy the full SHA
    cb49a05 View commit details
    Browse the repository at this point in the history
  214. cmd/utils: make --authrpc.jwtsecret a DirectoryFlag (ethereum#25849)

    Signed-off-by: Delweng <delweng@gmail.com>
    jsvisa authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    4bba830 View commit details
    Browse the repository at this point in the history
  215. eth/protocols/snap: make log messages more clear that sync is ongoing (

    …ethereum#25837)
    
    * eth/protocols/snap: make log messages more clear that sync is ongoing
    
    * Update sync.go
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    c7c8d19 View commit details
    Browse the repository at this point in the history
  216. Configuration menu
    Copy the full SHA
    81135ba View commit details
    Browse the repository at this point in the history
  217. Configuration menu
    Copy the full SHA
    2d2417b View commit details
    Browse the repository at this point in the history
  218. internal/version: use gitCommit injection in version handling code (e…

    …thereum#25851)
    
    This changes the CI build to store the git commit and date into package
    internal/version instead of package main. Doing this essentially merges our
    two ways of tracking the go-ethereum version into a single place, achieving
    two objectives:
    
    - Bad block reports, which use version.Info(), will now have the git commit
      information even when geth is built in an environment such as
      launchpad.net where git access is unavailable.
    
    - For geth builds created by `go build ./cmd/geth` (i.e. not using `go run
      build/ci.go install`), git information stored by the go tool is now used
      in the p2p node name as well as in `geth version` and `geth
      version-check`.
    fjl authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e3ff3c6 View commit details
    Browse the repository at this point in the history
  219. cmd/abigen: change --exc to exclude by type name (ethereum#22620)

    The abigen exclusion pattern, previously on the form "path:type", now supports wildcards. Examples "*:type" to exclude a named type in all files, or "/path/to/foo.sol:*" all types in foo.sol.
    sebastianst authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    6241d25 View commit details
    Browse the repository at this point in the history
  220. tests, les, eth: remove mentions of deprecated Morden testnet (ethere…

    …um#23570)
    
    * remove morden
    
    * Update commons.go
    
    * Update handler.go
    
    * empty commit to make appveyor happy
    Zachinquarantine authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    255c4ae View commit details
    Browse the repository at this point in the history
  221. all: clean up the configs for pruner and snapshotter (ethereum#22396)

    This PR cleans up the configurations for pruner and snapshotter by passing a config struct.
    
    And also, this PR disables the snapshot background generation if the chain is opened in "read-only" mode. The read-only mode is necessary in some cases. For example, we have a list of commands to open the etheruem node in "read-only" mode, like export-chain. In these cases, the snapshot background generation is non expected and should be banned explicitly.
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f6d5974 View commit details
    Browse the repository at this point in the history
  222. cmd/puppeth, cmd/utils: finalize removal of gasTarget flag (ethereum#…

    …24370)
    
    This PR fully removes the --miner.gastarget flag, as previously it was only hidden from the geth --help command, but could still be used.
    Zachinquarantine authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    4fa8ee6 View commit details
    Browse the repository at this point in the history
  223. core/types: improve accuracy of header.Size() (ethereum#25859)

    The header.Size() method did not take the basefee into account.
    zhiqiangxu authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    36636b3 View commit details
    Browse the repository at this point in the history
  224. eth/tracers: pad memory slice on OOB case (ethereum#25213)

    * eth/tracers: pad memory slice on oob case
    
    * eth/tracers/js: fix testfailure due to err msg capitalization
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    d650415 View commit details
    Browse the repository at this point in the history
  225. cmd/faucet: fix readme typos (ethereum#25867)

    * Fix: typos
    
    Fix: typos
    
    * Undo change
    
    Undo change
    omahs authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    77a9ebc View commit details
    Browse the repository at this point in the history
  226. core: fix datarace in txpool, fixes ethereum#25870 and ethereum#25869 (

    …ethereum#25872)
    
    core: fix datarace in txpool pendingnoce, fixes ethereum#25870
    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    84f76ca View commit details
    Browse the repository at this point in the history
  227. eth/downloader, les/downloader: fix subtle flaw in queue delivery (et…

    …hereum#25861)
    
    * fix queue.deliver
    
    * les/downloader: fix queue.deliver
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    ad29b3d View commit details
    Browse the repository at this point in the history
  228. core/vm: better handle error on eip activation check (ethereum#25131)

    * core/vm: correct logic for eip check of NewEVMInterpreter
    
    * refactor
    qinglin89 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e0a8ec8 View commit details
    Browse the repository at this point in the history
  229. cmd/geth: make dumpgenesis load genesis datadir if it exists (ethereu…

    …m#25135)
    
    `geth dumpgenesis` currently does not respect the content of the data directory. Instead, it outputs the genesis block created by command-line flags. This PR fixes it to read the genesis from the database, if the database already exists.
    
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9abd308 View commit details
    Browse the repository at this point in the history
  230. tests: fix state test error checking (ethereum#25702)

    Some tests define an 'expectException' error but the tests runner does not check for conditions where this test value is filled (error expected) but in which no error is returned by the test runner.
    
    An example of this scenario is GeneralStateTests/stTransactionTest/HighGasPrice.json, which expects a 'TR_NoFunds' error, but the test runner does not return any error.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    meowsbits authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    20dcc1a View commit details
    Browse the repository at this point in the history
  231. eth/tracers: use gencodec for native tracers (ethereum#25637)

    The call tracer and prestate tracer store data JSON-encoded in memory. In order to support alternative encodings (specifically RLP), it's better to keep data a native format during tracing. This PR does marshalling at the end, using gencodec.
    
    OBS! 
    This PR changes the call tracer result slightly:
    
    -  Order of type and value fields are changed (should not matter). 
    -  Output fields are completely omitted when they're empty (no more output: "0x"). Previously, this was only _sometimes_ omitted (e.g. when call ended in a non-revert error) and otherwise 0x when the output was actually empty.
    s1na authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    13fe20f View commit details
    Browse the repository at this point in the history
  232. cmd, core, eth, les, light: track deleted nodes (ethereum#25757)

    * cmd, core, eth, les, light: track deleted nodes
    
    * trie: add docs
    
    * trie: address comments
    
    * cmd, core, eth, les, light, trie: trie id
    
    * trie: add tests
    
    * trie, core: updates
    
    * trie: fix imports
    
    * trie: add utility print-method for nodeset
    
    * trie: import err
    
    * trie: fix go vet warnings
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    87a9a82 View commit details
    Browse the repository at this point in the history
  233. eth: return state error via GetEVM (ethereum#25876)

    * make vmError more useful
    
    * fix for review
    
    * Update api.go
    
    * revert calling site
    
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    eb9a469 View commit details
    Browse the repository at this point in the history
  234. Configuration menu
    Copy the full SHA
    85b8130 View commit details
    Browse the repository at this point in the history
  235. ethclient/gethclient: fix bugs in override object encoding (ethereum#…

    …25616)
    
    This fixes a bug where contract code would be overridden to empty code ("0x")
    when the Code field of OverrideAccount was left nil. The change also cleans up
    the encoding of overrides to only send necessary fields, and improves documentation.
    
    Fixes ethereum#25615
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    3 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f9d0f1f View commit details
    Browse the repository at this point in the history
  236. trie, eth/protocols/snap: less tiny db-writes during trie-healing (et…

    …hereum#25681)
    
    This PR prevent making tiny writes during state healing, by only performing the batch-write if the accumulated data is large enough to be meaningful.
    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e9a962e View commit details
    Browse the repository at this point in the history
  237. Configuration menu
    Copy the full SHA
    5268b38 View commit details
    Browse the repository at this point in the history
  238. tests: report mgas/s metric in evm benchmarks (ethereum#25700)

    * test(state): report mgas/s metric in EVM benchmark
    
    * revert testdata submodule update
    
    * aggregate mgas/s results
    
    * calculate elapsed time better
    
    * tests: benchmarks - handle access list + take refund into account
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    b61fde5 View commit details
    Browse the repository at this point in the history
  239. core/vm: minor trivial clean up (ethereum#25880)

    * dropped `vm.keccakState` for `crypto.KeccakState`
    
    * cleaned up `OpCode.IsPush()`
    lmittmann authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    922a47a View commit details
    Browse the repository at this point in the history
  240. Configuration menu
    Copy the full SHA
    5e30910 View commit details
    Browse the repository at this point in the history
  241. internal/ethapi: handle odd length hex in decodeHash (ethereum#25883)

    This change adds zero-padding (prefix) of odd nibbles in the decodeHash function. 
    
    Co-authored-by: ty <ty@oncoder.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1dd9e9a View commit details
    Browse the repository at this point in the history
  242. core: rework tx indexer (ethereum#25723)

    This PR reworks tx indexer a bit. Compared to the original version, one scenario is no longer handled - upgrading  from legacy geth without indexer support. 
    
    The tx indexer was introduced in 2020 and have been present through hardforks, so it can be assumed that all Geth nodes have tx indexer already. So we can simplify the tx indexer logic a bit:
    
    -    If the tail flag is not present, it means node is just initialized may or may not with an ancient store attached. In this case all blocks are regarded as unindexed
    -   If the tail flag is present, it means blocks below tail are unindexed, blocks above tail are indexed
    
    This change also address some weird cornercases that could make the indexer not work after a crash.
    rjl493456442 authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    7401449 View commit details
    Browse the repository at this point in the history
  243. Configuration menu
    Copy the full SHA
    1c634ec View commit details
    Browse the repository at this point in the history
  244. eth/tracers: remove revertReasonTracer, add revert reason to callTrac…

    …er (ethereum#25508)
    
    * eth/tracers: add revertReason to callTracer
    
    * update callframe gen json
    
    * add revertal to calltrace test
    s1na authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    a1f4f84 View commit details
    Browse the repository at this point in the history
  245. accounts/abi/bind: parse ABI only once on bind (ethereum#25574)

    * accounts/abi/bind: parse ABI once on bind
    
    * accounts/abi/bind: suppress 'imported and not used' error for abi package
    mikhailv authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    d10c8fc View commit details
    Browse the repository at this point in the history
  246. internal/flags: fix issue with stringslice migration (ethereum#25830)

    This fixes a cornercase bug where the flag migration would mess
    up the value of StringSlice flags.
    holiman authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    adf5aa6 View commit details
    Browse the repository at this point in the history
  247. cmd/geth, cmd/utils: geth attach with custom headers (ethereum#25829)

    This PR makes it possible to set custom headers, in particular for two scenarios: 
    
    - geth attach
    - geth commands which can use --remotedb, e..g geth db inspect
    
    The ability to use custom headers is typically useful for connecting to cloud-apis, e.g. providing an infura- or alchemy key, or for that matter access-keys for environments behind cloudflare.  
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    2 people authored and blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    7f7e6be View commit details
    Browse the repository at this point in the history
  248. Configuration menu
    Copy the full SHA
    4a78fde View commit details
    Browse the repository at this point in the history
  249. fix duplicated test

    blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    1f987c3 View commit details
    Browse the repository at this point in the history
  250. add back tests

    blakehhuynh committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    73f5285 View commit details
    Browse the repository at this point in the history