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

[Upgrade] Go-Ethereum release v1.9.22 #1213

Closed
wants to merge 44 commits into from

Commits on Sep 9, 2020

  1. Configuration menu
    Copy the full SHA
    8d35b1e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    367f12f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d81c9d9 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #21537 from karalabe/les-reorg-fix

    eth/downloader: only roll back light sync if not fully validating
    karalabe authored Sep 9, 2020
    Configuration menu
    Copy the full SHA
    3a98c6f View commit details
    Browse the repository at this point in the history
  5. cmd, eth: offer maxprice flag for overwritting price cap (#21531)

    * cmd, eth: offer maxprice flag for overwritting price cap
    
    * eth: rename default price cap
    rjl493456442 authored Sep 9, 2020
    Configuration menu
    Copy the full SHA
    328901c View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2020

  1. core/vm: fix benchmark overflow + prep for precompile repricings (#21…

    …530)
    
    * core/vm/testdata: add gascost expectations to testcases
    
    * core/vm: verify expected gas in tests for precompiles
    
    * core/vm: fix overflow flaw in gas/s calculation
    holiman authored Sep 10, 2020
    Configuration menu
    Copy the full SHA
    a3cd8a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4ea9737 View commit details
    Browse the repository at this point in the history
  3. ethclient: add BlockNumber method (#21500)

    This adds a new client method BlockNumber to fetch the most recent
    block number of the chain.
    sosedoff authored Sep 10, 2020
    Configuration menu
    Copy the full SHA
    1167639 View commit details
    Browse the repository at this point in the history
  4. cmd/geth: print warning when whisper config is present in toml (#21544)

    * cmd/geth: print warning when whisper config is present in toml
    
    * Update cmd/geth/config.go
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    gballet and holiman authored Sep 10, 2020
    Configuration menu
    Copy the full SHA
    d7f02b4 View commit details
    Browse the repository at this point in the history
  5. miner: use channels instead of atomics in update loop (#21536)

    This PR changes several different things:
    
    - Adds test cases for the miner loop
    - Stops the worker if it wasn't already stopped in worker.Close()
    - Uses channels instead of atomics in the miner.update() loop
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    MariusVanDerWijden and fjl authored Sep 10, 2020
    Configuration menu
    Copy the full SHA
    7cf56d6 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2020

  1. miner: fix regression, add test for starting while download (#21547)

    Fixes a regression introduced in #21536
    MariusVanDerWijden authored Sep 11, 2020
    Configuration menu
    Copy the full SHA
    df219e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e26413 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2020

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

Commits on Sep 14, 2020

  1. p2p/nodestate: ensure correct callback order (#21436)

    This PR adds an extra guarantee to NodeStateMachine: it ensures that all
    immediate effects of a certain change are processed before any subsequent
    effects of any of the immediate effects on the same node. In the original
    version, if a cascaded change caused a subscription callback to be called
    multiple times for the same node then these calls might have happened in a
    wrong chronological order.
    
    For example:
    
    - a subscription to flag0 changes flag1 and flag2
    - a subscription to flag1 changes flag3
    - a subscription to flag1, flag2 and flag3 was called in the following order:
    
       [flag1] -> [flag1, flag3]
       [] -> [flag1]
       [flag1, flag3] -> [flag1, flag2, flag3]
    
    This happened because the tree of changes was traversed in a "depth-first
    order". Now it is traversed in a "breadth-first order"; each node has a
    FIFO queue for pending callbacks and each triggered subscription callback
    is added to the end of the list. The already existing guarantees are
    retained; no SetState or SetField returns until the callback queue of the
    node is empty again. Just like before, it is the responsibility of the
    state machine design to ensure that infinite state loops are not possible.
    Multiple changes affecting the same node can still happen simultaneously;
    in this case the changes can be interleaved in the FIFO of the node but the
    correct order is still guaranteed.
    
    A new unit test is also added to verify callback order in the above scenario.
    zsfelfoldi authored Sep 14, 2020
    Configuration menu
    Copy the full SHA
    4eb9296 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    71c37d8 View commit details
    Browse the repository at this point in the history
  3. rlp: add SplitUint64 (#21563)

    This can be useful when working with raw RLP data.
    fjl authored Sep 14, 2020
    Configuration menu
    Copy the full SHA
    f7112cc View commit details
    Browse the repository at this point in the history
  4. les, les/lespay/server: refactor client pool (#21236)

    * les, les/lespay/server: refactor client pool
    
    * les: use ns.Operation and sub calls where needed
    
    * les: fixed tests
    
    * les: removed active/inactive logic from peerSet
    
    * les: removed active/inactive peer logic
    
    * les: fixed linter warnings
    
    * les: fixed more linter errors and added missing metrics
    
    * les: addressed comments
    
    * cmd/geth: fixed TestPriorityClient
    
    * les: simplified clientPool state machine
    
    * les/lespay/server: do not use goroutine for balance callbacks
    
    * internal/web3ext: fix addBalance required parameters
    
    * les: removed freeCapacity, always connect at minCapacity initially
    
    * les: only allow capacity change with priority status
    
    Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
    zsfelfoldi and rjl493456442 authored Sep 14, 2020
    Configuration menu
    Copy the full SHA
    4996fce View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. Configuration menu
    Copy the full SHA
    b65c384 View commit details
    Browse the repository at this point in the history
  2. COYPING: restore the full text text of GPL (#21568)

    When the license was added to the repository, its text was changed (some
    sections at the end removed) and, worse, the authors of go-ethereum
    tried to claim copyright on the license text.
    
    The correct way to apply GPL to a project is to copy it verbatim.
    This change reverts the text of the GPL to the original.
    kirelagin authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    4764b2f View commit details
    Browse the repository at this point in the history
  3. core/rawdb: single point of maintenance for writing and deleting tx l…

    …ookup indexes (#21480)
    Neurone authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    0185ee0 View commit details
    Browse the repository at this point in the history
  4. ethclient: fix BlockNumber (#21565)

    It didn't actually work because it called a method that doesn't
    exist. This fixes it also adds a test.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    masonforest and fjl authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    cf2a77a View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. params: allow setting Petersburg block before chain head (#21473)

    * Allow setting PetersburgBlock before chainhead
    
    if it is at the same block as ConstantinopleBlock
    
    * Add a negative test
    vdamle authored Sep 16, 2020
    Configuration menu
    Copy the full SHA
    8696dd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    93f0470 View commit details
    Browse the repository at this point in the history
  3. tests/fuzzers/abi: add fuzzer for fuzzing package accounts/abi (#21217)

    * tests/fuzzers/abi: added abi fuzzer
    
    * accounts/abi: fixed issues found by fuzzing
    
    * tests/fuzzers/abi: update fuzzers, added repro test
    
    * tests/fuzzers/abi: renamed abi_fuzzer to abifuzzer
    
    * tests/fuzzers/abi: updated abi fuzzer
    
    * tests/fuzzers/abi: updated abi fuzzer
    
    * accounts/abi: minor style fix
    
    * go.mod: added go-fuzz dependency
    
    * tests/fuzzers/abi: updated abi fuzzer
    
    * tests/fuzzers/abi: make linter happy
    
    * tests/fuzzers/abi: make linter happy
    
    * tests/fuzzers/abi: comment out false positives
    MariusVanDerWijden authored Sep 16, 2020
    Configuration menu
    Copy the full SHA
    89884dc View commit details
    Browse the repository at this point in the history
  4. cmd/utils: use preconfigured testnet flags instead of networkid (#21561)

    * cmd/utils: use preconfigured testnet flags instead of networkid
    
    * cmd/utils: shorter description
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    * Update flags.go
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    MariusVanDerWijden and holiman authored Sep 16, 2020
    Configuration menu
    Copy the full SHA
    faba018 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2020

  1. cmd/geth: added counters to the geth inspect report (#21495)

    * database: added counters
    
    * Improved stats for ancient db
    
    * Small improvement
    
    * Better message and added percentage while counting receipts
    
    * Fast counting for receipts
    
    * added info message
    
    * Show both receips itemscount  from ancient db and counted receipts
    
    * Fixed default case
    
    * Removed counter for receipts in ancient store
    
    * Removed counting of receipts present in leveldb
    Neurone authored Sep 17, 2020
    Configuration menu
    Copy the full SHA
    07751c3 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2020

  1. Configuration menu
    Copy the full SHA
    fb835c0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #21529 from karalabe/dynamic-pivot

    eth/downloader: dynamically move pivot even during chain sync
    karalabe authored Sep 18, 2020
    Configuration menu
    Copy the full SHA
    2482ba0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f354c62 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2020

  1. accounts/abi: improve documentation and names (#21540)

    * accounts: abi/bid/backends; cleaned doc errors, camelCase refactors and anonymous variable assignments
    
    * acounts/abi/bind: doc errors, anonymous parameter assignments
    
    * accounts/abi: doc edits, camelCase refactors
    
    * accounts/abi/bind: review fix
    
    * reverted name changes
    
    * name revert
    
    Co-authored-by: Osoro Bironga <osoro@doctaroo.com>
    muse254 and Osoro Bironga authored Sep 20, 2020
    Configuration menu
    Copy the full SHA
    9a39c6b View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. mobile: better api for java users (#21580)

    * (mobile): Adds string representations for types
    
    * mobile: better interfaces add stringer to types
    
    Co-authored-by: sarath <sarath@melvault.com>
    MariusVanDerWijden and sarath authored Sep 21, 2020
    Configuration menu
    Copy the full SHA
    2c097bb View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2020

  1. p2p: move rlpx into separate package (#21464)

    This change moves the RLPx protocol implementation into a separate package,
    p2p/rlpx. The new package can be used to establish RLPx connections for
    protocol testing purposes.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    renaynay and fjl authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    129cf07 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdb7424 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. Configuration menu
    Copy the full SHA
    e1365b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    25b1608 View commit details
    Browse the repository at this point in the history
  3. internal/ethapi: add optional parameter blockNrOrHash to estimateGas …

    …(#21545)
    
    This allows users to estimate gas on top of arbitrary blocks as well as pending and latest.
    Tracing on pending is useful for most users as it takes into account the current txpool while
    tracing on latest might be useful for users that have little to know knowledge of the current
    transactions in the network.
    
    If blockNrOrHash is not specified, estimateGas defaults to pending
    MariusVanDerWijden authored Sep 23, 2020
    Configuration menu
    Copy the full SHA
    0921f8a View commit details
    Browse the repository at this point in the history
  4. trie: extend range proof (#21250)

    * trie: support non-existent right proof
    
    * trie: improve test
    
    * trie: minor linter fix
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    rjl493456442 and karalabe authored Sep 23, 2020
    Configuration menu
    Copy the full SHA
    e5defcc View commit details
    Browse the repository at this point in the history
  5. internal/ethapi: fix nil deref + fix estimateGas console bindings (#2…

    …1601)
    
    * tried to fix
    
    * fix for js api
    
    * fix for nil pointer ex
    
    * rev space
    
    * rev space
    
    * input call formatter
    MariusVanDerWijden authored Sep 23, 2020
    Configuration menu
    Copy the full SHA
    c154442 View commit details
    Browse the repository at this point in the history
  6. cmd/devp2p: add eth protocol test suite (#21598)

    This change adds a test framework for the "eth" protocol and some basic
    tests. The tests can be run using the './devp2p rlpx eth-test' command.
    renaynay authored Sep 23, 2020
    Configuration menu
    Copy the full SHA
    a25899f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    39f8268 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

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

Commits on Sep 28, 2020

  1. Configuration menu
    Copy the full SHA
    b5d362b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #21635 from karalabe/cht-1.9.22

    params: update CHTs for Geth v1.9.22
    karalabe authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    7ddb44b View commit details
    Browse the repository at this point in the history
  3. params: release Geth v1.9.22

    karalabe committed Sep 28, 2020
    Configuration menu
    Copy the full SHA
    c71a7e2 View commit details
    Browse the repository at this point in the history