Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream v1.10.9 #59

Merged
merged 146 commits into from
Feb 9, 2023
Merged

Merge upstream v1.10.9 #59

merged 146 commits into from
Feb 9, 2023

Commits on Jun 29, 2021

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

Commits on Jul 22, 2021

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

Commits on Jul 27, 2021

  1. Use hexutil.Uint for blockCount parameter in feeHistory method (e…

    …thereum#23239)
    
    * internal/ethapi/api: use hexutil.uint for blockCount parameter instead of int for feeHistory
    
    * return hex value for oldestBlock instead of number
    
    * return uint64 from oracle.resolveBlockRange
    
    * eth/gasprice: fixed test
    
    Co-authored-by: Zsolt Felfoldi <zsfelfoldi@gmail.com>
    lightclient and zsfelfoldi committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    bbfa648 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c89ec9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b20bc5c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3aea432 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. internal/ethapi: fix panic in accesslist creation (ethereum#23225)

    * internal/ethapi: revert + fix properly in al tracer
    
    * internal/ethapi: use toMessage instead of creating new message
    
    * internal/ethapi: remove ineffassign
    
    * core: fix invalid unmarshalling, fix test
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    MariusVanDerWijden and holiman committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    2faf796 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0730acc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    56e9001 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. Configuration menu
    Copy the full SHA
    523866c View commit details
    Browse the repository at this point in the history
  2. accounts/external, internal/ethapi: fixes for London tx signing (ethe…

    …reum#23274)
    
    Ticket ethereum#23273 found a flaw where we were unable to sign legacy-transactions
    using the external signer, even if we're still on non-london network. That's
    fixed in this PR.
    
    Additionally, I found that even when supplying all parameters, it was impossible
    to sign a london-transaction on an unsynched node. It's a pretty common usecase
    that someone wants to sign a transaction using an unsynced 'vanilla' node,
    providing all necessary data. Our setDefaults, however, insisted on checking the
    current block against the config. This PR therefore adds a case, so that if both
    MaxPriorityFeePerGas and MaxFeePerGas are provided, we accept them as given.
    
    OBS This PR fixes a regression -- on current master, we are unable to sign a
    london-transaction unless the node is synched, which may break scenarios where
    geth (or clef) is used as a cold wallet.
    
    Fixes ethereum#23273
    holiman committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    5c13012 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb8ea59 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    64a5e12 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b157bae View commit details
    Browse the repository at this point in the history
  6. p2p/simulations: fix unlikely crash in probabilistic connect (ethereu…

    …m#23200)
    
    When the nodeCount is less than 10, it will panic with the out of bound error.
    How about we just skip this round, when rand1 and rand2 are equal?
    Evolution404 committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    8f11d27 View commit details
    Browse the repository at this point in the history
  7. signer/core: move API JSON types to separate package (ethereum#23275)

    This PR moves (some) account types into a standalone package, to avoid
    depending on signer/core from accounts/external.
    holiman committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    295bc35 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3526f69 View commit details
    Browse the repository at this point in the history
  9. p2p: remove term "whitelist" (ethereum#23295)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    baptiste-b-pegasys and fjl committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    860184d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    85afdee View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. node, cmd/clef: remove term "whitelist" (ethereum#23296)

    * node: remove term "whitelist"
    
    * include cmd/clef
    baptiste-b-pegasys committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    95bbd46 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Configuration menu
    Copy the full SHA
    82c5085 View commit details
    Browse the repository at this point in the history
  2. cmd/devp2p: fix ping/pong race in discv4 tests (ethereum#23306)

    This PR modifies the post-PING-send expectations to both be laxer and stricter: it doesn't care what order the packets arrive, but also verifies that exactly one PING and one PONG is returned.
    holiman committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    4cd6a14 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c38fab9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f311488 View commit details
    Browse the repository at this point in the history
  5. core/state: add trie prefetcher tests (ethereum#23216)

    * core/state: add trie prefetcher tests
    
    * core/state: add missing license
    MariusVanDerWijden committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    28ba686 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2021

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

Commits on Aug 7, 2021

  1. core: check if sender is EOA (ethereum#23303)

    This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices.
    holiman committed Aug 7, 2021
    Configuration menu
    Copy the full SHA
    0658712 View commit details
    Browse the repository at this point in the history
  2. cmd/evm: implement input txs via rlp in t8n tool (ethereum#23138)

    In many cases, it's desireable to use already-signed transactions as input to the state transition, instead of having the evm sign them internally (for example to use malformed or not-yet-valid transactions). This PR adds support + docs for that feature.
    holiman committed Aug 7, 2021
    Configuration menu
    Copy the full SHA
    8a24b56 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2021

  1. core/rawdb: close database in test to avoid goroutine leak (ethereum#…

    …23287)
    
    * add db close to avoid goroutine leak
    
    * core/rawdb: move close to defer
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    charlesxsh and holiman committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9e59474 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2021

  1. core: fix london-check to avoid duplication (ethereum#23333)

    Co-authored-by: lxex <liuxmzc1@163.com>
    lxex and lxex committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    d60cfd2 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2021

  1. Configuration menu
    Copy the full SHA
    97bd6cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b38a83 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ethereum#23370 from karalabe/windows-pruning-fix-b

    core/state/pruner: fix state bloom sync permission in Windows
    karalabe committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    520f256 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d17546 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e4b687c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    57d9e0a View commit details
    Browse the repository at this point in the history
  7. core/state/snapshot: clarify comment about snapshot repair (ethereum#…

    …23305)
    
    
    Co-authored-by: Tyler Chambers <me@tylerchambers.net>
    Co-authored-by: Felix Lange <fjl@twurst.com>
    3 people committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    6694831 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    39fe7ec View commit details
    Browse the repository at this point in the history
  9. internal/ethapi, accounts/abi/bind: cap highest gas limit by account …

    …balance for 1559 fee parameters (ethereum#23309)
    
    * internal/ethapi/api: cap highest gas limit by account balance for 1559 fee parameters
    
    * accounts/abi/bind: port gas limit cap for 1559 parameters to simulated backend
    
    * accounts/abi/bind: add test for 1559 gas estimates for the simulated backend
    
    * internal/ethapi/api: fix comment
    
    * accounts/abi/bind/backends, internal/ethapi: unify naming style
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    lightclient and karalabe committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    a879c42 View commit details
    Browse the repository at this point in the history
  10. core/state/snapshot: gofmt

    karalabe committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    9d6480c View commit details
    Browse the repository at this point in the history
  11. Merge pull request ethereum#23371 from karalabe/gofmt

    core/state/snapshot: gofmt
    karalabe committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    5d0ab07 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9097d0a View commit details
    Browse the repository at this point in the history
  13. Merge pull request ethereum#23373 from karalabe/docker-flip

    travis: transition from docker auto builds to manual pushes
    karalabe committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    0fbc94e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c27bd34 View commit details
    Browse the repository at this point in the history
  15. Merge pull request ethereum#23374 from karalabe/fix-docker-tag

    build: fix docker tag to include `v` prefix in version string
    karalabe committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    deff505 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2021

  1. Configuration menu
    Copy the full SHA
    278ec71 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ethereum#23384 from holiman/fix_gasfoo

    internal/ethapi: add back missing check for maxfee < maxPriorityFee
    karalabe committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    2a451f9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4ad493 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ethereum#23385 from karalabe/cht-1.10.7

    params: update CHTs for the 1.10.7 release
    karalabe committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    971df49 View commit details
    Browse the repository at this point in the history
  5. params: release Geth v1.10.7

    karalabe committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    12f0ff4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a580f7d View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. core/rawdb: implement sequential reads in freezer_table (ethereum#23117)

    * core/rawdb: implement sequential reads in freezer_table
    
    * core/rawdb, ethdb: add sequential reader to db interface
    
    * core/rawdb: lint nitpicks
    
    * core/rawdb: fix some nitpicks
    
    * core/rawdb: fix flaw with deferred reads not being performed
    
    * core/rawdb: better documentation
    holiman committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    5f98020 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ethereum#23120 from karalabe/drop-eth-65

    eth: drop eth/65, the last non-reqid protocol version
    karalabe committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    fd604be View commit details
    Browse the repository at this point in the history
  3. accounts/external: handle 0 chainid as not-set for the Clef API (ethe…

    …reum#23394)
    
    * accounts/external: handle 0 chainid as not-set for the Clef API
    
    * accounts/external: document SignTx
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    karalabe and fjl committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    0a68558 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. tests: update, enable legacy tests, remove vm tests (ethereum#23350)

    * tests: update, enable legacy tests, remove vm tests
    
    * tests: minor fixes
    holiman committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    fb4007b View commit details
    Browse the repository at this point in the history
  2. cmd, metrics: add support for influxdb-v2 (cherry-picking from italoa…

    …casas' changes), leave existing support for v1 to maintain backwards-compatibility. (ethereum#23194)
    
    This PR adds flag to enable InfluxDB v2 (--metrics.influxdbv2), flags for v2-specific features (--metrics.influxdb.token, --metrics.influxdb.bucket), also carries over addition of support for specifying organization (--metrics.influxdb.organization), but still retains backwards compatibility with InfluxDB v1.
    jwasinger committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    6902485 View commit details
    Browse the repository at this point in the history
  3. cmd, core: remove calaveras testnet (ethereum#23366)

    Removes references to the short-lived Calaveras testnet
    Zachinquarantine committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    85b9bdd View commit details
    Browse the repository at this point in the history
  4. cmd/utils: add --nousb to the list of deprecated flags (ethereum#23388)

    Adds --nousb as a deprecated flag when someone runs the geth show-deprecated-flags command.
    Zachinquarantine committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    16ecdd5 View commit details
    Browse the repository at this point in the history
  5. eth, internal/ethapi: make RPC block miner field show block sealer co…

    …rrectly (ethereum#23312)
    
    Makes the RPC block return the POA sealer for clique blocks on the 'miner' field (was previously zeroes)
    chenjia404 committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    57feabe View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

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

Commits on Aug 20, 2021

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

Commits on Aug 23, 2021

  1. Configuration menu
    Copy the full SHA
    d02c605 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb1f7eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dfeb2f7 View commit details
    Browse the repository at this point in the history
  4. eth/gasprice: feeHistory improvements (ethereum#23422)

    * eth/gasprice: cache feeHistory results
    
    * eth/gasprice: changed feeHistory block count limitation
    
    * eth/gasprice: do not use embedded struct in blockFees
    
    * eth/gasprice: fee processing logic cleanup
    
    * eth/gasprice: purge feeHistory cache at chain reorgs
    zsfelfoldi committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    f38abc5 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. core/vm: faster code analysis (ethereum#23381)

    * core/vm: more detailed benchmark for jumpdest analysis
    
    * core/vm: make jd analysis benchmark alloc free
    
    * core/vm: improve jumpdest analysis
    
    * core/vm: improve worst-case
    
    * core/vm: further improvements in analysis
    
    * core/vm: improve jumpdest analysis >PUSH15
    
    * core/vm: make jd analysis ref by value
    
    * core/vm: fix misspell
    
    * core/vm: improve set8 and set16 a bit
    
    * core/vm: reduce amount of code
    
    * core/vm: optimize byte copying
    holiman committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    1d99573 View commit details
    Browse the repository at this point in the history
  2. params: release Geth v1.10.8

    karalabe committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    2667545 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ea4bc2d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    79bb930 View commit details
    Browse the repository at this point in the history
  5. p2p, p2p/enode: fix data races (ethereum#23434)

    In p2p/dial.go, conn.flags was accessed without using sync/atomic.
    This race is fixed by removing the access.
    
    In p2p/enode/iter_test.go, a similar race is resolved by writing the field atomically.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    MariusVanDerWijden and fjl committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    8dbf261 View commit details
    Browse the repository at this point in the history
  6. core/bloombits: avoid crash when storing errors of different type (et…

    …hereum#23437)
    
    This fixes a rare crash which could occur when two different errors happened
    in the same bloombits.MatcherSession.
    otherview committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    8e0771c View commit details
    Browse the repository at this point in the history
  7. tests/testdata: make submodule shallow (ethereum#23412)

    Before:
    
    316M .git/modules/tests/
    
    After:
    
    171M .git/modules/tests/
    ligi committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    5c66bab View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0b40977 View commit details
    Browse the repository at this point in the history
  9. core/types: add benchmarks for rlp encoding/decoding (ethereum#23190)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
    3 people committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    a0a4a15 View commit details
    Browse the repository at this point in the history
  10. node: add comment about --nousb being deprecated (ethereum#23439)

    Co-authored-by: Felix Lange <fjl@twurst.com>
    Zachinquarantine and fjl committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    85126c4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5cee33e View commit details
    Browse the repository at this point in the history
  12. core: make txpool reject too sudden changes (ethereum#23095)

    * core: make txpool reject too sudden changes
    
    * core: add some metrics to txpool
    holiman committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    d705f5a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0db0b27 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b69f5ca View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a789dcc View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a5a5237 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    fe2f153 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2021

  1. Configuration menu
    Copy the full SHA
    83ad92c View commit details
    Browse the repository at this point in the history
  2. build: upgrade to golangci-lint v1.42.0 (ethereum#23461)

    The new linter version is built with go 1.17 and thus includes the go vet
    check for mismatched +build and go:build lines.
    
    Fortunately, no new warnings are reported with this update.
    fjl committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    45f3443 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    efee853 View commit details
    Browse the repository at this point in the history
  4. cmd/evm: add difficulty calculation to t8n tool (ethereum#23353)

    This PR adds functionality to the evm t8n to calculate ethash difficulty. If the caller does not provide a currentDifficulty, but instead provides the parentTimestamp (well, semi-optional, will default to 0 if not given), and parentDifficulty, we can calculate it for him.
    
    The caller can also provide a parentUncleHash. In most, but not all cases, the parent uncle hash also affects the formula. If no such hash is provided (or, if the empty all-zero hash is provided), it's assumed that there were no uncles.
    holiman committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    84c51bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3784e15 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d162142 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    887902e View commit details
    Browse the repository at this point in the history
  8. all: add go:build lines (ethereum#23468)

    Generated by go1.17 fmt ./...
    fjl committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    8a13401 View commit details
    Browse the repository at this point in the history
  9. rlp: minor optimizations for slice/array encoding (ethereum#23467)

    As per benchmark results below, these changes speed up encoding/decoding of
    consensus objects a bit.
    
        name                             old time/op    new time/op    delta
        EncodeRLP/legacy-header-8           384ns ± 1%     331ns ± 3%  -13.83%  (p=0.000 n=7+8)
        EncodeRLP/london-header-8           411ns ± 1%     359ns ± 2%  -12.53%  (p=0.000 n=8+8)
        EncodeRLP/receipt-for-storage-8     251ns ± 0%     239ns ± 0%   -4.97%  (p=0.000 n=8+8)
        EncodeRLP/receipt-full-8            319ns ± 0%     300ns ± 0%   -5.89%  (p=0.000 n=8+7)
        EncodeRLP/legacy-transaction-8      389ns ± 1%     387ns ± 1%     ~     (p=0.099 n=8+8)
        EncodeRLP/access-transaction-8      607ns ± 0%     581ns ± 0%   -4.26%  (p=0.000 n=8+8)
        EncodeRLP/1559-transaction-8        627ns ± 0%     606ns ± 1%   -3.44%  (p=0.000 n=8+8)
        DecodeRLP/legacy-header-8           831ns ± 1%     813ns ± 1%   -2.20%  (p=0.000 n=8+8)
        DecodeRLP/london-header-8           824ns ± 0%     804ns ± 1%   -2.44%  (p=0.000 n=8+7)
    
    * rlp: pass length to byteArrayBytes
    
    This makes it possible to inline byteArrayBytes. For arrays, the length is known
    at encoder construction time, so the call to v.Len() can be avoided.
    
    * rlp: avoid IsNil for pointer encoding
    
    It's actually cheaper to use Elem first, because it performs less checks
    on the value. If the pointer was nil, the result of Elem is 'invalid'.
    
    * rlp: minor optimizations for slice/array encoding
    
    For empty slices/arrays, we can avoid storing a list header entry in the
    encoder buffer. Also avoid doing the tail check at encoding time because
    it is already known at encoder construction time.
    fjl committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    32c576b View commit details
    Browse the repository at this point in the history
  10. cmd/devp2p/internal/ethtest: remove WriteTo method (ethereum#23379)

    WriteTo is unused, and go vet warns about it because it
    doesn't match the usual signature of the io.WriterTo method.
    baptiste-b-pegasys committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    154b525 View commit details
    Browse the repository at this point in the history
  11. rpc: add BlockNumber.MarshalText (ethereum#23324)

    Currently rpc.BlockNumber is marshalled to JSON as a numeric value, which is
    wrong because BlockNumber.UnmarshalJSON() wants it to either be hex-encoded
    or string "earliest"/"latest"/"pending". As a result, the call chain
    
        rpc.BlockNumberOrHashWithNumber(123) -> json.Marshal() -> json.Unmarshal()
    
    fails with error "cannot unmarshal object into Go value of type string".
    zenovich committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    7c4cad0 View commit details
    Browse the repository at this point in the history
  12. build: stop publishing deb packages for Ubuntu 20.10 Groovy Gorilla (e…

    …thereum#23470)
    
    Support for this Ubuntu release has ended on July 22 2021 and
    Launchpad no longer accepts uploads for it.
    fjl committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    d584e39 View commit details
    Browse the repository at this point in the history
  13. node: remove dependency on wallet backend packages (ethereum#23019)

    * accounts: new AddBackends method in manager
    
    * node,cmd/geth: mv accman backend init to cmd/geth
    
    * node,cmd/geth: mv scrypt config downstreawm from node
    
    * accounts: use static buffer size for accman sub chan
    
    minor fix
    
    * accounts,cmd/geth: update accman backends through its event loop
    
    * accounts,node: add comments
    
    * accounts: un-export newBackendEvent
    
    * accounts: use chan instead of wg in newBlockEvent
    
    * node: rename isKeyDirEphem
    
    * accounts,cmd: AddBackends->AddBackend
    
    * accounts: fix potential blocking when adding backend
    s1na committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    108eec3 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. Revert "eth, internal/ethapi: make RPC block miner field show block s…

    …ealer correctly (ethereum#23312)" (ethereum#23466)
    
    This reverts commit 57feabe.
    holiman committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    62ad17f View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. internal/ethapi: support both input and data for personal_sendTransac…

    …tion (ethereum#23476)
    
    Currently, setDefaults overwrites the transaction input value if only input is provided. This causes personal_sendTransaction to estimate the gas based on a transaction with empty data. eth_estimateGas never calls setDefaults so it was unaffected by this.
    lightclient committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    ffae204 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. core/vm: rework jumpdest analysis benchmarks (ethereum#23499)

    * core/vm: rework jumpdest analysis benchmarks
    
    For BenchmarkJumpdestOpAnalysis use fixed code size of ~1.2MB
    and classic benchmark loop.
    
    * core/vm: clear bitvec in jumpdest analysis benchmark
    chfast committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    3258211 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Configuration menu
    Copy the full SHA
    f85cf72 View commit details
    Browse the repository at this point in the history
  2. core: fix typo in iterator.go (ethereum#23502)

    strorage -> storage
    eltociear committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    31be5d4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d019e90 View commit details
    Browse the repository at this point in the history
  4. core: fix race conditions in txpool (ethereum#23474)

    * core: fix race conditions in txpool
    
    * core: fixed races in the txpool
    
    * core: rebased on master
    
    * core: move reheap mutex
    
    * core: renamed mutex
    
    * core: revert Reheap changes
    MariusVanDerWijden committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    067084f View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

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

Commits on Sep 7, 2021

  1. trie: add missing copyright header (ethereum#23530)

    * Add missing copyright header
    
    * Update stacktrie_test.go
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    aaronbuchwald and karalabe committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    de2c44a View commit details
    Browse the repository at this point in the history
  2. docs: add post-mortem (ethereum#23518)

    * docs: add post-mortem
    
    * Update docs/postmortems/2021-08-22-split-postmortem.md
    
    Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
    
    * Update docs/postmortems/2021-08-22-split-postmortem.md
    
    Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
    
    * Update docs/postmortems/2021-08-22-split-postmortem.md
    
    Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
    
    * Update docs/postmortems/2021-08-22-split-postmortem.md
    
    * Update 2021-08-22-split-postmortem.md
    
    * Update docs/postmortems/2021-08-22-split-postmortem.md
    
    Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
    
    Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
    holiman and s1na committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    7957530 View commit details
    Browse the repository at this point in the history
  3. internal/debug: remove deprecated flags (ethereum#23368)

    * internal/debug: remove deprecated flags
    
    The removed flags are removed in the main portion of geth, this removes it internally too.
    
    * internal/debug: remove legacy --debug and legacy --backtrace flag
    
    * Update flags.go
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    Zachinquarantine and holiman committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    ca5bc67 View commit details
    Browse the repository at this point in the history
  4. cmd/geth, cmd/utils: remove legacy rpc flags (ethereum#23358)

    * remove rpc flags
    
    * remove legacy rpc flags
    
    * remove legacy rpc flags
    
    * remove legacy rpc commands
    
    * (hopefully) fix most of the build errors
    
    * fix build errors
    
    https://app.travis-ci.com/github/ethereum/go-ethereum/jobs/530318686
    
    * cmd/utils: fix syntax error
    
    * empty commit to unbreak travis ci
    
    * fix syntax error
    
    * syntax fixes
    
    * syntax fixes
    
    * fix
    
    fixes "cmd/geth/usage.go:234:7: expected '(', found init (typecheck)"
    
    * fix
    
    * various fixes in usage.go
    
    * various fixes in flags.go
    
    * adds extra space
    
    reverts the spacing to how it was before I resolved the merge conflict
    
    * more fixes in usage.go
    
    * fix
    
    fix for cmd/geth/usage.go:243:17: expected operand, found ':=' (typecheck) in travis
    
    * Update cmd/utils/flags.go
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    * fix error
    
     fixes these errors:
    cmd/utils/flags_legacy.go:21:2: "strings" imported but not used (typecheck)
    
    	"strings"
    
    	^
    
    cmd/utils/flags_legacy.go:24:2: "github.com/ethereum/go-ethereum/node" imported but not used (typecheck)
    
    	"github.com/ethereum/go-ethereum/node"
    
    	^
    
    * goimports
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    Zachinquarantine and holiman committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    9a0df80 View commit details
    Browse the repository at this point in the history
  5. core/rawdb: freezer batch write (ethereum#23462)

    This change is a rewrite of the freezer code.
    
    When writing ancient chain data to the freezer, the previous version first encoded each
    individual item to a temporary buffer, then wrote the buffer. For small item sizes (for
    example, in the block hash freezer table), this strategy causes a lot of system calls for
    writing tiny chunks of data. It also allocated a lot of temporary []byte buffers.
    
    In the new version, we instead encode multiple items into a re-useable batch buffer, which
    is then written to the file all at once. This avoids performing a system call for every
    inserted item.
    
    To make the internal batching work, the ancient database API had to be changed. While
    integrating this new API in BlockChain.InsertReceiptChain, additional optimizations were
    also added there.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    holiman and fjl committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    794c613 View commit details
    Browse the repository at this point in the history
  6. p2p/enode: use unix timestamp as base ENR sequence number (ethereum#1…

    …9903)
    
    This PR ensures that wiping all data associated with a node (apart from its nodekey)
    will not generate already used sequence number for the ENRs, since all remote nodes
    would reject them until they out-number the previously published largest one.
    
    The big complication with this scheme is that every local update to the ENR can
    potentially bump the sequence number by one. In order to ensure that local updates
    do not outrun the clock, the sequence number is a millisecond-precision timestamp,
    and updates are throttled to occur at most once per millisecond.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    karalabe and fjl committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    6ef3a16 View commit details
    Browse the repository at this point in the history
  7. core: make txPricedList.stales the first field for 64bit alignment (e…

    …thereum#23542)
    
    This fixes crashes on 32bit builds.
    fjl committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    51ed39c View commit details
    Browse the repository at this point in the history
  8. core: 64bit alignment of testBlockChain.gasLimit (ethereum#23543)

    This fixes crashes in txpool tests on 32bit platforms.
    fjl committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    5c1fc3b View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

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

Commits on Sep 10, 2021

  1. Configuration menu
    Copy the full SHA
    9e17648 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ethereum#23561 from karalabe/temp-split-leseh

    les: duplicate downloader and fetcher to allow progressive refactoring
    karalabe committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    9ada4a2 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. README: add londonBlock to example genesis config (ethereum#23565)

    Updated example genesis.json configuration section, added londonBlock within config.
    verheesj committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    578bc81 View commit details
    Browse the repository at this point in the history
  2. cmd/evm: transaction validation tool (ethereum#23494)

    * cmd/evm: transaction validation tool
    
    * cmd/evm: add hash to t9n tool
    
    * cmd/evm: lint nits
    
    * cmd/evm: nitpicks
    holiman committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    babe9b9 View commit details
    Browse the repository at this point in the history
  3. core, rpc: disable memory output by default in traces (ethereum#23558)

    * core: cmd: invert disableMemory
    
    * core: fix missed inversion
    
    * cmd/evm: preserve Flags but change default value
    
    * Apply suggestions from code review
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    MariusVanDerWijden and holiman committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    b8d7c66 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. cmd/devp2p/internal/ethtest: only use eth66 if eth66 is negotiated (e…

    …thereum#23568)
    
    * cmd/devp2p/internal/ethtest: only use eth66 if eth66 is negotiated
    
    * cmd/devp2p/internal/ethtest: switch on concrete type not pointer
    
    * cmd/devp2p/internal/ethtest: switch on concrete type not pointer
    MariusVanDerWijden committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    84ff152 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

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

Commits on Sep 17, 2021

  1. core,eth: call frame tracing (ethereum#23087)

    This change introduces 2 new optional methods; `enter()` and `exit()` for js tracers, and makes `step()` optiona. The two new methods are invoked when entering and exiting a call frame (but not invoked for the outermost scope, which has it's own methods). Currently these are the data fields passed to each of them:
    
        enter: type (opcode), from, to, input, gas, value
        exit: output, gasUsed, error
    
    The PR also comes with a re-write of the callTracer. As a backup we keep the previous tracing script under the name `callTracerLegacy`. Behaviour of both tracers are equivalent for the most part, although there are some small differences (improvements), where the new tracer is more correct / has more information.
    s1na committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    4013549 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. ethclient, accounts/keystore: fix flaky tests (ethereum#23599)

    * ethclient/gethclient: fix flaky test (due to map key ordering)
    
    * accounts/keystore: fix test failing due to rand collision due to low time resolution on windows
    holiman committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    1b34283 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    62e3b83 View commit details
    Browse the repository at this point in the history
  3. internal: support optional filter expression for debug.stacks (ethere…

    …um#23605)
    
    * internal: support optional filter expression for debug.stacks
    
    * internal/debug: fix string regexp
    
    * internal/debug: support searching for line numbers too
    karalabe committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    e28f713 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9bf495b View commit details
    Browse the repository at this point in the history
  5. Merge pull request ethereum#23609 from karalabe/regex-fix

    internal/debug: make gosimple linter happy
    karalabe committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    86f3625 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b246af View commit details
    Browse the repository at this point in the history
  7. Merge pull request ethereum#23610 from karalabe/gomod-tify

    go.mod: fix module file to prevent go from updating it during build
    karalabe committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    b1a5e4a View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. console: add note about typing exit to exit (ethereum#23602)

    * add explicit note about typing exit in console
    
    * Add note about typing exit as alternative
    thadguidry committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    d8211c7 View commit details
    Browse the repository at this point in the history
  2. consensus/clique: prevent 0 len extradata from panicing (ethereum#23538)

    Closes ethereum#23522
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    MariusVanDerWijden and holiman committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    b61ef24 View commit details
    Browse the repository at this point in the history
  3. rpc: set scheme for ws and ipc conns to the server (ethereum#23615)

    * rpc: set scheme for ws and ipc conns to the server
    
    * rpc: review fixes
    
    * rpc: bugfix
    
    * rpc: empty default scheme
    s1na committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    ca9bce9 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

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

Commits on Sep 27, 2021

  1. rpc: set pong read deadline (ethereum#23556)

    This PR adds a 30s timeout for the remote part to answer a ping message, thus detecting (silent) disconnnects
    jmank88 committed Sep 27, 2021
    Configuration menu
    Copy the full SHA
    51ececb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12674d4 View commit details
    Browse the repository at this point in the history
  3. eth/tracers: re-write of 4byte tracer using enter/exit (ethereum#23622)

    * eth/tracers: add re-write of 4byte tracer using enter/exit
    
    * eth/tracers: fix 4byte indent
    s1na committed Sep 27, 2021
    Configuration menu
    Copy the full SHA
    ac7baea View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2021

  1. core/state: move state account to core/types + abstracted "write acco…

    …unt to trie" (ethereum#23567)
    
    * core/state: abstracted "write account to trie" method
    
    * fix appveyor build
    
    * Apply suggestions from code review
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    * review feedback
    
    * core/state/accounts: move Account to core/types
    
    * core/types: rename Account -> StateAccount
    
    * core/state: restore EncodeRLP for stateObject
    
    * core/types: add the missing file
    
    * more review feedback
    
    * more review feedback
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    Co-authored-by: Felix Lange <fjl@twurst.com>
    3 people committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    443afc9 View commit details
    Browse the repository at this point in the history
  2. eth/tracers: implement debug.intermediateRoots (ethereum#23594)

    This PR implements a new debug method, which I've talked briefly about to some other client developers. It allows the caller to obtain the intermediate state roots for a block (which might be either a canon block or a 'bad' block).
    holiman committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    ab2caae View commit details
    Browse the repository at this point in the history
  3. core/rawdb: avoid unnecessary receipt processing for log filtering (e…

    …thereum#23147)
    
    * core/types: rm extranous check in test
    
    * core/rawdb: add lightweight types for block logs
    
    * core/rawdb,eth: use lightweight accessor for log filtering
    
    * core/rawdb: add bench for decoding into rlpLogs
    s1na committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    783e97e View commit details
    Browse the repository at this point in the history
  4. accounts/abi/bind: check event signature before parsing (ethereum#23230)

    * accounts/abi/bind: check event signature before parsing
    
    * remove redundant break line
    yihau committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    92c5d10 View commit details
    Browse the repository at this point in the history
  5. eth/tracers: avoid unsyncronized mutations on trie database (ethereum…

    …#23632)
    
    This PR fixes an issue in traceChain, where the statedb Commit operation was performed asynchronously with dereference-operations agains the underlying trie.Database instance. Due to how the reference counting works within the trie database (where parent count is recursively updated when new parents are added), doing dereferencing in the middle of Commit can cause the refcount to become wrong, leading to an inconsistent state. 
    
    This was fixed by doing Commit/Deref from the same routine.
    holiman committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    3531ca2 View commit details
    Browse the repository at this point in the history
  6. eth/protocols/eth: simplify peer known block/txs caches (ethereum#23649)

    * Simplify peer known block/txns cache
    
    * Address minor changes
    
    * Add more minor comments
    
    * Minor changes from review
    ferranbt committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    a541fbe View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    42bc194 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2021

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

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    7a5ca37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a9b33a View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

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