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 geth version to 1.9.25 #16

Merged
merged 1,904 commits into from
Apr 7, 2021
Merged

Update geth version to 1.9.25 #16

merged 1,904 commits into from
Apr 7, 2021
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Aug 11, 2020

  1. Configuration menu
    Copy the full SHA
    7afdf79 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ethereum#21437 from karalabe/cht-1.9.19

    params: update CHTs for v1.9.19
    karalabe authored Aug 11, 2020
    Configuration menu
    Copy the full SHA
    74925e5 View commit details
    Browse the repository at this point in the history
  3. params: release Geth v1.9.19

    karalabe committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    3e06419 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    04926db View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2020

  1. cmd/geth/tests: try to fix spurious travis failure in les tests (ethe…

    …reum#21410)
    
    * cmd/geth/tests: try to fix spurious travis failure in les tests
    
    * cmd/geth: les_test - remove extraneous option during boot
    holiman authored Aug 14, 2020
    Configuration menu
    Copy the full SHA
    54add42 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2020

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

Commits on Aug 19, 2020

  1. Configuration menu
    Copy the full SHA
    2ff464b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    32b078d View commit details
    Browse the repository at this point in the history
  3. Merge pull request ethereum#21461 from karalabe/ppa-drop-disco

    build: drop disco, enable groovy on Ubuntu PPAs
    karalabe authored Aug 19, 2020
    Configuration menu
    Copy the full SHA
    560d444 View commit details
    Browse the repository at this point in the history
  4. cmd/evm: statet8n output folder + tx hashes on trace filenames (ether…

    …eum#21406)
    
    * t8ntool: add output basedir
    
    * t8ntool: add txhash to trace filename
    
    * t8ntool: don't default to '.' basedir, allow absolute paths
    holiman authored Aug 19, 2020
    Configuration menu
    Copy the full SHA
    7ebc6c4 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2020

  1. Configuration menu
    Copy the full SHA
    0bdd295 View commit details
    Browse the repository at this point in the history
  2. core: define and test chain rewind corner cases (ethereum#21409)

    * core: define and test chain reparation cornercases
    
    * core: write up a variety of set-head tests
    
    * core, eth: unify chain rollbacks, handle all the cases
    
    * core: make linter smile
    
    * core: remove commented out legacy code
    
    * core, eth/downloader: fix review comments
    
    * core: revert a removed recovery mechanism
    karalabe authored Aug 20, 2020
    Configuration menu
    Copy the full SHA
    8cbdc86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15fdaf2 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ethereum#21466 from karalabe/go1.15

    travis, dockerfile, appveyor, build: bump to Go 1.15
    karalabe authored Aug 20, 2020
    Configuration menu
    Copy the full SHA
    a70a79b View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. metrics: zero temp variable in updateMeter (ethereum#21470)

    * metrics: zero temp variable in  updateMeter
    
    Previously the temp variable was not updated properly after summing it to count.
    This meant we had astronomically high metrics, now we zero out the temp whenever we
    sum it onto the snapshot count
    
    * metrics: move temp variable to be aligned, unit tests
    
    Moves the temp variable in MeterSnapshot to be 64-bit aligned because of the atomic bug.
    Adds a unit test, that catches the previous bug.
    MariusVanDerWijden authored Aug 21, 2020
    Configuration menu
    Copy the full SHA
    4e54b1a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f7b79a View commit details
    Browse the repository at this point in the history
  3. Merge pull request ethereum#21472 from holiman/fix_dltest_fail

    eth/downloader: fix rollback issue on short chains
    karalabe authored Aug 21, 2020
    Configuration menu
    Copy the full SHA
    b68929c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    87c0ba9 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2020

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

Commits on Aug 24, 2020

  1. eth: utilize sync bloom for getNodeData (ethereum#21445)

    * eth/downloader, eth/handler: utilize sync bloom for getNodeData
    
    * trie: handle if bloom is nil
    
    * trie, downloader: check bloom nilness externally
    holiman authored Aug 24, 2020
    Configuration menu
    Copy the full SHA
    0f4e7c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ee91b9 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ethereum#21477 from karalabe/snapshotter-shallow-g…

    …enerator
    
    core/state/snapshot: reduce disk layer depth during generation
    karalabe authored Aug 24, 2020
    Configuration menu
    Copy the full SHA
    bdde616 View commit details
    Browse the repository at this point in the history
  4. p2p/discover: avoid dropping unverified nodes when table is almost em…

    …pty (ethereum#21396)
    
    This change improves discovery behavior in small networks. Very small
    networks would often fail to bootstrap because all member nodes were
    dropping table content due to findnode failure. The check is now changed
    to avoid dropping nodes on findnode failure when their bucket is almost
    empty. It also relaxes the liveness check requirement for FINDNODE/v4
    response nodes, returning unverified nodes as results when there aren't
    any verified nodes yet.
    
    The "findnode failed" log now reports whether the node was dropped
    instead of the number of results. The value of the "results" was
    always zero by definition.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    timcooijmans and fjl authored Aug 24, 2020
    Configuration menu
    Copy the full SHA
    7b5107b View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2020

  1. Configuration menu
    Copy the full SHA
    5655dce View commit details
    Browse the repository at this point in the history
  2. Merge pull request ethereum#21483 from karalabe/freezer-truncate-silent

    core/rawdb: only complain loudly if truncating many items
    karalabe authored Aug 25, 2020
    Configuration menu
    Copy the full SHA
    d13b8e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    341f451 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ce5f949 View commit details
    Browse the repository at this point in the history
  5. Merge pull request ethereum#21486 from karalabe/cht-1.9.20

    params: update CHTs for v1.9.20 release
    karalabe authored Aug 25, 2020
    Configuration menu
    Copy the full SHA
    63a9d4b View commit details
    Browse the repository at this point in the history
  6. params: release Geth v1.9.20

    fjl committed Aug 25, 2020
    Configuration menu
    Copy the full SHA
    979fc96 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fc20680 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2020

  1. accounts/abi/bind/backends: Disallow AdjustTime for non-empty blocks (e…

    …thereum#21334)
    
    * accounts/abi/bind/backends: Disallow timeshift for non-empty blocks
    
    * accounts/abi/bind/backends: added tests for adjust time
    
    * accounts/abi/bind/simulated: added comments, fixed test for AdjustTime
    
    * accounts/abi/bind/backends: updated comment
    MariusVanDerWijden authored Aug 26, 2020
    Configuration menu
    Copy the full SHA
    92b12ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d8da0b3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16d7eae View commit details
    Browse the repository at this point in the history
  4. go.mod | goleveldb latest update (ethereum#21448)

    * go.mod | goleveldb latest update
    
    * go.mod update
    
    * leveldb options
    
    * go.mod: double check
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    ucwong and karalabe authored Aug 26, 2020
    Configuration menu
    Copy the full SHA
    856307d View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2020

  1. Merge pull request ethereum#21491 from karalabe/state-sync-leak-fix

    core/state, eth, trie: stabilize memory use, fix memory leak
    karalabe authored Aug 27, 2020
    Configuration menu
    Copy the full SHA
    d97e006 View commit details
    Browse the repository at this point in the history
  2. eth/tracers: revert reason in call_tracer + error for failed internal…

    … calls (ethereum#21387)
    
    * tests: add testdata of call tracer
    
    * eth/tracers: return revert reason in call_tracer
    
    * eth/tracers: regenerate assets
    
    * eth/tracers: add error message even if no exec occurrs, fixes ethereum#21438
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    libotony and holiman authored Aug 27, 2020
    Configuration menu
    Copy the full SHA
    05280a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2020

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

Commits on Sep 1, 2020

  1. accounts/abi: fix a bug in getTypeSize method (ethereum#21501)

    * accounts/abi: fix a bug in getTypeSize method
    
    e.g. for "Tuple[2]" type, the element of the array is a tuple type and the size of the tuple may not be 32.
    
    * accounts/abi: add unit test of getTypeSize method
    tofudfy authored Sep 1, 2020
    Configuration menu
    Copy the full SHA
    12d8570 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff23e26 View commit details
    Browse the repository at this point in the history
  3. "Downloader queue stats" is now provided once per minute (ethereum#21455

    )
    
    * "Downloader queue stats" is now a DEBUG information
    
    I think this info is more a DEBUG related information then an INFO. If it must remains an INFO, maybe it can be slow down to one time every 5 minutes or so.
    
    * Update queue.go
    
    "Downloader queue stats" information is now provided once every minute instead of once every 10 seconds.
    Neurone authored Sep 1, 2020
    Configuration menu
    Copy the full SHA
    5cdb476 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d90bbce View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2020

  1. eth/downloader: change intial download size (ethereum#21366)

    This changes how the downloader works, a little bit. Previously, when block sync started,
    we immediately started filling up to 8192 blocks. Usually this is fine, blocks are small
    in the early numbers. The threshold then is lowered as we measure the size of the blocks
    that are filled.
    
    However, if the node is shut down and restarts syncing while we're in a heavy segment,
    that might be bad. This PR introduces a more conservative initial threshold of 2K blocks
    instead.
    holiman authored Sep 2, 2020
    Configuration menu
    Copy the full SHA
    3010f9f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eeaf191 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ethereum#21504 from karalabe/trie-path-sync

    core, eth, trie: prepare trie sync for path based operation
    karalabe authored Sep 2, 2020
    Configuration menu
    Copy the full SHA
    f86324e View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2020

  1. eth: added trace_call to trace on top of arbitrary blocks (ethereum#2…

    …1338)
    
    * eth: Added TraceTransactionPending
    
    * eth: Implement Trace_Call, remove traceTxPending
    
    * eth: debug_call -> debug_traceCall, recompute tx environment if pruned
    
    * eth: fix nil panic
    
    * eth: improve block retrieving logic in tracers
    
    * internal/web3ext: add debug_traceCall to console
    MariusVanDerWijden authored Sep 7, 2020
    Configuration menu
    Copy the full SHA
    de971cc View commit details
    Browse the repository at this point in the history
  2. accounts: abi/bid/backends; cleaned doc errors, camelCase refactors a…

    …nd anonymous variable assignments (ethereum#21514)
    
    Co-authored-by: Osoro Bironga <osoro@doctaroo.com>
    muse254 and Osoro Bironga authored Sep 7, 2020
    Configuration menu
    Copy the full SHA
    c5d28f0 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2020

  1. whisper: remove whisper (ethereum#21487)

    * whisper: remove whisper
    
    * Update cmd/geth/config.go
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    
    * cmd/geth: warn on enabling whisper + remove more whisper deps
    
    * mobile: remove all whisper references
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    3 people authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    d54f2f2 View commit details
    Browse the repository at this point in the history
  2. accounts/usbwallet, signer/core: show accounts from ledger legacy der…

    …ivation paths (ethereum#21517)
    
    * accounts/usbwallet, signer/core: un-hide accounts from ledger legacy derivation paths
    
    * Update accounts/usbwallet/wallet.go
    
    * Update signer/core/api.go
    
    * Update signer/core/api.go
    holiman authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    8327d1f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    066c755 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    86bcbb0 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2020

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

    params: update CHTs for v1.9.21 release
    karalabe authored Sep 9, 2020
    Configuration menu
    Copy the full SHA
    24562d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0287d54 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8d35b1e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    367f12f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d81c9d9 View commit details
    Browse the repository at this point in the history
  7. Merge pull request ethereum#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
  8. cmd, eth: offer maxprice flag for overwritting price cap (ethereum#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 (eth…

    …ereum#21530)
    
    * 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 (ethereum#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 (ether…

    …eum#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 (ethereum#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. 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 (ethereum#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 (ethereum#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 (ethereum#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 (ethereum#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. Configuration menu
    Copy the full SHA
    0185ee0 View commit details
    Browse the repository at this point in the history
  4. ethclient: fix BlockNumber (ethereum#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 (ethereum#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 (ether…

    …eum#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 (ethe…

    …reum#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 (ethereum#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 ethereum#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 (ethereum#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 (ethereum#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 (ethereum#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 (e…

    …thereum#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 (ethereum#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 (et…

    …hereum#21601)
    
    * 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 (ethereum#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 ethereum#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
  4. Configuration menu
    Copy the full SHA
    c995914 View commit details
    Browse the repository at this point in the history
  5. accounts/abi: ABI explicit difference between Unpack and UnpackIntoIn…

    …terface (ethereum#21091)
    
    * accounts/abi: refactored abi.Unpack
    
    * accounts/abi/bind: fixed error
    
    * accounts/abi/bind: modified template
    
    * accounts/abi/bind: added ToStruct for conversion
    
    * accounts/abi: reenabled tests
    
    * accounts/abi: fixed tests
    
    * accounts/abi: fixed tests for packing/unpacking
    
    * accounts/abi: fixed tests
    
    * accounts/abi: added more logic to ToStruct
    
    * accounts/abi/bind: fixed template
    
    * accounts/abi/bind: fixed ToStruct conversion
    
    * accounts/abi/: removed unused code
    
    * accounts/abi: updated template
    
    * accounts/abi: refactored unused code
    
    * contracts/checkpointoracle: updated contracts to sol ^0.6.0
    
    * accounts/abi: refactored reflection logic
    
    * accounts/abi: less code duplication in Unpack*
    
    * accounts/abi: fixed rebasing bug
    
    * fix a few typos in comments
    
    * rebase on master
    
    Co-authored-by: Guillaume Ballet <gballet@gmail.com>
    MariusVanDerWijden and gballet authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    420b786 View commit details
    Browse the repository at this point in the history
  6. mobile: added constructor for big int (ethereum#21597)

    * mobile: added constructor for big int
    
    * mobile: tiny nitpick
    MariusVanDerWijden authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    a90e645 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0ddd461 View commit details
    Browse the repository at this point in the history
  8. core: free pointer from slice after popping element from price heap (e…

    …thereum#21572)
    
    * Fix potential memory leak in price heap
    
    * core: nil free pointer slice (alternative version)
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    aaronbuchwald and holiman authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    eebfb13 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a04294d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b007df8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6660929 View commit details
    Browse the repository at this point in the history
  12. build: keep geth-sources.jar build result for JavaDoc (ethereum#21596)

    * ci: tooltips for javadoc for mobile app
    
    * f space
    MariusVanDerWijden authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    901471f View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2020

  1. Configuration menu
    Copy the full SHA
    4ee11b0 View commit details
    Browse the repository at this point in the history
  2. trie: use stacktrie for Derivesha operation (ethereum#21407)

    core/types: use stacktrie for derivesha
    
    trie: add stacktrie file
    
    trie: fix linter
    
    core/types: use stacktrie for derivesha
    
    rebased: adapt stacktrie to the newer version of DeriveSha
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    More linter fixes
    
    review feedback: no key offset for nodes converted to hashes
    
    trie: use EncodeRLP for full nodes
    
    core/types: insert txs in order in derivesha
    
    trie: tests for derivesha with stacktrie
    
    trie: make stacktrie use pooled hashers
    
    trie: make stacktrie reuse tmp slice space
    
    trie: minor polishes on stacktrie
    
    trie/stacktrie: less rlp dancing
    
    core/types: explain the contorsions in DeriveSha
    
    ci: fix goimport errors
    
    trie: clear mem on subtrie hashing
    
    squashme: linter fix
    
    stracktrie: use pooling, less allocs (nebulaai#3)
    
    trie: in-place hex prefix, reduce allocs and add rawNode.EncodeRLP
    
    Reintroduce the `[]node` method, add the missing `EncodeRLP` implementation for `rawNode` and calculate the hex prefix in place.
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    gballet and holiman authored Sep 29, 2020
    Configuration menu
    Copy the full SHA
    6c8310e View commit details
    Browse the repository at this point in the history
  3. accounts, signer: implement gnosis safe support (ethereum#21593)

    * accounts, signer: implement gnosis safe support
    
    * common/math: add type for marshalling big to dec
    
    * accounts, signer: properly sign gnosis requests
    
    * signer, clef: implement account_signGnosisTx
    
    * signer: fix auditlog print, change rpc-name (signGnosisTx to signGnosisSafeTx)
    
    * signer: pass validation-messages/warnings to the UI for gnonsis-safe txs
    
    * signer/core: minor change to validationmessages of typed data
    holiman authored Sep 29, 2020
    Configuration menu
    Copy the full SHA
    dad2658 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2020

  1. trie: polishes to trie committer (ethereum#21351)

    * trie: update tests to check commit integrity
    
    * trie: polish committer
    
    * trie: fix typo
    
    * trie: remove hasvalue notion
    
    According to the benchmarks, type assertion between the pointer and
    interface is extremely fast.
    
    BenchmarkIntmethod-12           1000000000               1.91 ns/op
    BenchmarkInterface-12           1000000000               2.13 ns/op
    BenchmarkTypeSwitch-12          1000000000               1.81 ns/op
    BenchmarkTypeAssertion-12       2000000000               1.78 ns/op
    
    So the overhead for asserting whether the shortnode has "valuenode"
    child is super tiny. No necessary to have another field.
    
    * trie: linter nitpicks
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    rjl493456442 and holiman authored Sep 30, 2020
    Configuration menu
    Copy the full SHA
    053ed9c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d1e202 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. core/state/snapshot: stop generator if it hits missing trie nodes (et…

    …hereum#21649)
    
    * core/state/snapshot: exit Geth if generator hits missing trie nodes
    
    * core/state/snapshot: error instead of hard die on generator fault
    
    * core/state/snapshot: don't enable logging on the tests
    karalabe authored Oct 5, 2020
    Configuration menu
    Copy the full SHA
    a15d71a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9890a6 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. params: update goerli testnet bootnodes (ethereum#21659)

    * params: update pegasys besu bootnode
    
    * params: update goerli initiative bootnodes
    q9f authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    2b2fd74 View commit details
    Browse the repository at this point in the history
  2. core/bloombits: faster generator (ethereum#21625)

    * core/bloombits: add benchmark
    
    * core/bloombits: optimize inserts
    holiman authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    eb87121 View commit details
    Browse the repository at this point in the history
  3. core/types: optimize bloom filters (ethereum#21624)

    * core/types: tests for bloom
    
    * core/types: refactored bloom filter for receipts, added tests
    
    core/types: replaced old bloom implementation
    
    core/types: change interface of bloom add+test
    
    * core/types: refactor bloom
    
    * core/types: minor tweak on LogsBloom
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    holiman and MariusVanDerWijden authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    e43d827 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2020

  1. cmd/devp2p/internal/ethtest: improve eth test suite (ethereum#21615)

    This fixes issues with the protocol handshake and status exchange
    and adds support for responding to GetBlockHeaders requests.
    renaynay authored Oct 7, 2020
    Configuration menu
    Copy the full SHA
    716864d View commit details
    Browse the repository at this point in the history
  2. node: relax websocket connection header check (ethereum#21646)

    This makes it accept the "upgrade,keep-alive" header value, which
    apparently is a thing.
    fjl authored Oct 7, 2020
    Configuration menu
    Copy the full SHA
    015e789 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2020

  1. signer/core: don't mismatch reject and no accounts (ethereum#21677)

    * signer/core: don't mismatch reject and zero accounts, fixes ethereum#21674
    
    * signer/core: docs
    holiman authored Oct 8, 2020
    Configuration menu
    Copy the full SHA
    6d29e19 View commit details
    Browse the repository at this point in the history
  2. p2p/discover: remove use of shared hash instance for key derivation (e…

    …thereum#21673)
    
    For some reason, using the shared hash causes a cryptographic incompatibility
    when using Go 1.15. I noticed this during the development of Discovery v5.1
    when I added test vector verification.
    
    The go library commit that broke this is golang/go@97240d5, but the
    way we used HKDF is slightly dodgy anyway and it's not a regression.
    fjl authored Oct 8, 2020
    Configuration menu
    Copy the full SHA
    5e86e4e View commit details
    Browse the repository at this point in the history
  3. core/vm: dedup config check in markdown logger (ethereum#21655)

    * core/vm: dedup config check
    
    * review feedback: reuse buffer
    gballet authored Oct 8, 2020
    Configuration menu
    Copy the full SHA
    43cd31e View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2020

  1. eth/downloader: fix data race around the ancientlimit (ethereum#21681)

    * eth/downloader: fix data race around the ancientlimit
    
    * eth/downloader: initialize the ancientlimit as 0
    rjl493456442 authored Oct 9, 2020
    Configuration menu
    Copy the full SHA
    905ed10 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19a1c95 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    706f5e3 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2020

  1. trie: polish commit function (ethereum#21692)

    * trie: polish commit function
    
    * trie: fix typo
    rjl493456442 authored Oct 12, 2020
    Configuration menu
    Copy the full SHA
    86dd005 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66c3eb2 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2020

  1. Configuration menu
    Copy the full SHA
    32341f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c37e68e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94d1f58 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    348c3bc View commit details
    Browse the repository at this point in the history
  5. internal/web3ext: improve some web3 apis (ethereum#21639)

    * imporve some web3-ext apis
    
    * Update web3ext.go
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    mrFranklin and fjl authored Oct 13, 2020
    Configuration menu
    Copy the full SHA
    5c6155f View commit details
    Browse the repository at this point in the history
  6. eth, p2p: use truncated names (ethereum#21698)

    * peer: return localAddr instead of name to prevent spam
    
    We currently use the name (which can be freely set by the peer) in several log messages.
    This enables malicious actors to write spam into your geth log.
    This commit returns the localAddr instead of the freely settable name.
    
    * p2p: reduce usage of peer.Name in warn messages
    
    * eth, p2p: use truncated names
    
    * Update peer.go
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    Co-authored-by: Felix Lange <fjl@twurst.com>
    3 people authored Oct 13, 2020
    Configuration menu
    Copy the full SHA
    7a5a822 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2a9ea6b View commit details
    Browse the repository at this point in the history
  8. miner: don't interrupt mining after successful sync (ethereum#21701)

    * miner: exit loop when downloader Done or Failed
    
    Following the logic of the comment at the method,
    this fixes a regression introduced at 7cf56d6
    , which would allow external parties to DoS with
    blocks, preventing mining progress.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: remove ineff assign (lint)
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: update test re downloader events
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * Revert "miner: remove ineff assign (lint)"
    
    This reverts commit eaefcd3.
    
    * Revert "miner: exit loop when downloader Done or Failed"
    
    This reverts commit 23abd34.
    
    * miner: add test showing imprecise TestMiner
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: fix waitForMiningState precision
    
    This helper function would return an affirmation
    on the first positive match on a desired bool.
    
    This was imprecise; it return false positives
    by not waiting initially for an 'updated' value.
    
    This fix causes TestMiner_2 to fail, which is
    expected.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: remove TestMiner_2 demonstrating broken test
    
    This test demonstrated the imprecision of the test
    helper function waitForMiningState. This function
    has been fixed with 6d365c2, and this test test
    may now be removed.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: fix test regarding downloader event/mining expectations
    
    See comment for logic.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: add test describing expectations for downloader/mining events
    
    We expect that once the downloader emits a DoneEvent,
    signaling a successful sync, that subsequent StartEvents
    are not longer permitted to stop the miner.
    
    This prevents a security vulnerability where forced syncs via
    fake high blocks would stall mining operation.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: use 'canStop' state to fix downloader event handling
    
    - Break downloader event handling into event
    separating Done and Failed events. We need to
    treat these cases differently since a DoneEvent
    should prevent the miner from being stopped on
    subsequent downloader Start events.
    
    - Use canStop state to handle the one-off
    case when a downloader first succeeds.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: improve comment wording
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: start mining on downloader events iff not already mining
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: refactor miner update logic w/r/t downloader events
    
    This makes mining pause/start logic regarding downloader
    events more explicit. Instead of eternally handling downloader
    events after the first done event, the subscription is closed
    when downloader events are no longer actionable.
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: fix handling downloader events on subcription closed
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: (lint:gosimple) use range over chan instead of for/select
    
    Signed-off-by: meows <b5c6@protonmail.com>
    
    * miner: refactor update loop to remove race condition
    
    The go routine handling the downloader events handling
    vars in parallel with the parent routine, causing a
    race condition.
    
    This change, though ugly, remove the condition while
    still allowing the downloader event subscription to be
    closed when the miner has no further use for it (ie DoneEvent).
    
    * miner: alternate fix for miner-flaw
    
    Co-authored-by: meows <b5c6@protonmail.com>
    holiman and meowsbits authored Oct 13, 2020
    Configuration menu
    Copy the full SHA
    1e10489 View commit details
    Browse the repository at this point in the history
  9. accounts/keystore: fix flaky test (ethereum#21703)

    * accounts/keystore: add timeout to test to prevent failure on travis
    
    The TestWalletNotifications test sporadically fails on travis.
    This is because we shutdown the event collection before all events are received.
    Adding a small timeout (10 milliseconds) allows the collector to be scheduled
    and to consume all pending events before we shut it down.
    
    * accounts/keystore: added newlines back in
    
    * accounts/keystore: properly fix the walletNotifications test
    MariusVanDerWijden authored Oct 13, 2020
    Configuration menu
    Copy the full SHA
    1fed223 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2020

  1. Configuration menu
    Copy the full SHA
    bdc7554 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4eb01b2 View commit details
    Browse the repository at this point in the history
  3. p2p/discover: implement v5.1 wire protocol (ethereum#21647)

    This change implements the Discovery v5.1 wire protocol and
    also adds an interactive test suite for this protocol.
    fjl authored Oct 14, 2020
    Configuration menu
    Copy the full SHA
    524aaf5 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2020

  1. Configuration menu
    Copy the full SHA
    8c2f271 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51d026c View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2020

  1. core/vm: marshall returnData as hexstring in trace logs (ethereum#21715)

    * core/vm: marshall returnData as hexstring in trace logs
    
    * core/vm: marshall returnData as hexstring in trace logs
    MariusVanDerWijden authored Oct 16, 2020
    Configuration menu
    Copy the full SHA
    b305591 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. console: don't exit on ctrl-c, only on ctrl-d (ethereum#21660)

    * add interrupt counter
    
    * remove interrupt counter, allow ctrl-C to clear ONLY, ctrl-D will terminate console, stop node
    
    * format
    
    * add instructions to exit
    
    * fix tests
    renaynay authored Oct 20, 2020
    Configuration menu
    Copy the full SHA
    cef3e2d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e71371 View commit details
    Browse the repository at this point in the history
  3. core: track and improve tx indexing/unindexing (ethereum#21331)

    * core: add background indexer to waitgroup
    
    * core: make indexer stopable
    
    * core/rawdb: add unit tests
    
    * core/rawdb: fix lint
    
    * core/rawdb: fix tests
    
    * core/rawdb: fix linter
    rjl493456442 authored Oct 20, 2020
    Configuration menu
    Copy the full SHA
    9d25f34 View commit details
    Browse the repository at this point in the history
  4. eth/api: fix potential nil deref in AccountRange (ethereum#21710)

    * Fix potential nil pointer error when neither block number nor hash is specified to accountRange
    
    * Update error description
    aaronbuchwald authored Oct 20, 2020
    Configuration menu
    Copy the full SHA
    3e82c9e View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2020

  1. les: remove clientPeerSet and serverSet (ethereum#21566)

    * les: move NodeStateMachine from clientPool to LesServer
    
    * les: new header broadcaster
    
    * les: peerCommons.headInfo always contains last announced head
    
    * les: remove clientPeerSet and serverSet
    
    * les: fixed panic
    
    * les: fixed --nodiscover option
    
    * les: disconnect all peers at ns.Stop()
    
    * les: added comments and fixed signed broadcasts
    
    * les: removed unused parameter, fixed tests
    zsfelfoldi authored Oct 21, 2020
    Configuration menu
    Copy the full SHA
    85d81b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91c4607 View commit details
    Browse the repository at this point in the history
  3. accounts/usbwallet: fix ledger version check (ethereum#21733)

    The version check logic did not take into account the second digit (i.e. the '4' in v1.4.0) - this one line patch corrects this.
    svenski123 authored Oct 21, 2020
    Configuration menu
    Copy the full SHA
    fb2c79d View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2020

  1. all: implement EIP-2929 (gas cost increases for state access opcodes)…

    … + yolo-v2 (ethereum#21509)
    
    * core/vm, core/state: implement EIP-2929 + YOLOv2
    
    * core/state, core/vm: fix some review concerns
    
    * core/state, core/vm: address review concerns
    
    * core/vm: address review concerns
    
    * core/vm: better documentation
    
    * core/vm: unify sload cost as fully dynamic
    
    * core/vm: fix typo
    
    * core/vm/runtime: fix compilation flaw
    
    * core/vm/runtime: fix renaming-err leftovers
    
    * core/vm: renaming
    
    * params/config: use correct yolov2 chainid for config
    
    * core, params: use a proper new genesis for yolov2
    
    * core/state/tests: golinter nitpicks
    holiman authored Oct 23, 2020
    Configuration menu
    Copy the full SHA
    6487c00 View commit details
    Browse the repository at this point in the history
  2. cmd/devp2p/internal/ethtest: update test chain (ethereum#21742)

    The old one was wrong in two ways: the first block in chain.rlp was the
    genesis block, and the genesis difficulty was below minimum difficulty.
    
    This also contains some other fixes to the test.
    fjl authored Oct 23, 2020
    Configuration menu
    Copy the full SHA
    95f720f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f5182c7 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ethereum#21745 from holiman/yolov2_bootnodes

    utils, params: add yolov2 bootnode
    karalabe authored Oct 23, 2020
    Configuration menu
    Copy the full SHA
    8a94aa9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    68ac4eb View commit details
    Browse the repository at this point in the history
  6. Merge pull request ethereum#21747 from holiman/yolov2update

    params: update yolov2 bootnode with elastic ip
    karalabe authored Oct 23, 2020
    Configuration menu
    Copy the full SHA
    7b748e5 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2020

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

Commits on Oct 27, 2020

  1. accounts/abi/bind: restore error functionality (ethereum#21743)

    * accounts/abi/bind: restore error functionality
    
    * Update accounts/abi/bind/base.go
    
    Co-authored-by: Guillaume Ballet <gballet@gmail.com>
    
    Co-authored-by: Guillaume Ballet <gballet@gmail.com>
    MariusVanDerWijden and gballet authored Oct 27, 2020
    Configuration menu
    Copy the full SHA
    296a27d View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2020

  1. core/state: maintain one more diff layer (ethereum#21730)

    * core/state: maintain one more diff layer
    
    * core/state: address comment
    rjl493456442 authored Oct 28, 2020
    Configuration menu
    Copy the full SHA
    18145ad View commit details
    Browse the repository at this point in the history
  2. core/state: disable snapshot iteration if it's not fully constructed (e…

    …thereum#21682)
    
    * core/state/snapshot: add diskRoot function
    
    * core/state/snapshot: disable iteration if the snapshot is generating
    
    * core/state/snapshot: simplify the function
    
    * core/state: panic for undefined layer
    rjl493456442 authored Oct 28, 2020
    Configuration menu
    Copy the full SHA
    43c278c View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2020

  1. core: improve snapshot journal recovery (ethereum#21594)

    * core/state/snapshot: introduce snapshot journal version
    
    * core: update the disk layer in an atomic way
    
    * core: persist the disk layer generator periodically
    
    * core/state/snapshot: improve logging
    
    * core/state/snapshot: forcibly ensure the legacy snapshot is matched
    
    * core/state/snapshot: add debug logs
    
    * core, tests: fix tests and special recovery case
    
    * core: polish
    
    * core: add more blockchain tests for snapshot recovery
    
    * core/state: fix comment
    
    * core: add recovery flag for snapshot
    
    * core: add restart after start-after-crash tests
    
    * core/rawdb: fix imports
    
    * core: fix tests
    
    * core: remove log
    
    * core/state/snapshot: fix snapshot
    
    * core: avoid callbacks in SetHead
    
    * core: fix setHead cornercase where the threshold root has state
    
    * core: small docs for the test cases
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    rjl493456442 and karalabe authored Oct 29, 2020
    Configuration menu
    Copy the full SHA
    b63e3c3 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

  1. les, p2p/simulations/adapters: fix issues found while simulating les (e…

    …thereum#21761)
    
    This adds a few tiny fixes for les and the p2p simulation framework:
    
    LES Parts
    
    - Keep the LES-SERVER connection even it's non-synced
    
      We had this idea to reject the connections in LES protocol if the les-server itself is
      not synced. However, in LES protocol we will also receive the connection from another
      les-server. In this case even the local node is not synced yet, we should keep the tcp
      connection for other protocols(e.g. eth protocol).
    
    - Don't count "invalid message" for non-existing GetBlockHeadersMsg request
    
      In the eth syncing mechanism (full sync, fast sync, light sync), it will try to fetch
      some non-existent blocks or headers(to ensure we indeed download all the missing chain).
      In this case, it's possible that the les-server will receive the request for
      non-existent headers. So don't count it as the "invalid message" for scheduling
      dropping.
    
    - Copy the announce object in the closure
    
      Before the les-server pushes the latest headers to all connected clients, it will create
      a closure and queue it in the underlying request scheduler. In some scenarios it's
      problematic. E.g, in private networks, the block can be mined very fast. So before the
      first closure is executed, we may already update the latest_announce object. So actually
      the "announce" object we want to send is replaced.
    
      The downsize is the client will receive two announces with the same td and then drop the
      server.
    
    P2P Simulation Framework
    
    - Don't double register the protocol services in p2p-simulation "Start".
    
      The protocols upon the devp2p are registered in the "New node stage". So don't reigster
      them again when starting a node in the p2p simulation framework
    
    - Add one more new config field "ExternalSigner", in order to use clef service in the
      framework.
    rjl493456442 authored Oct 30, 2020
    Configuration menu
    Copy the full SHA
    b63bffe View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2020

  1. common: remove ToHex and ToHexArray (ethereum#21610)

    ToHex was deprecated a couple years ago. The last remaining use
    was in ToHexArray, which itself only had a single call site.
    
    This just moves ToHexArray near its only remaining call site and
    implements it using hexutil.Encode. This changes the default behaviour
    of ToHexArray and with it the behaviour of eth_getProof. Previously we
    encoded an empty slice as 0, now the empty slice is encoded as 0x.
    MariusVanDerWijden authored Nov 4, 2020
    Configuration menu
    Copy the full SHA
    3eebf34 View commit details
    Browse the repository at this point in the history
  2. core/state/snapshot: fix journal recovery from generating old journal (

    …ethereum#21775)
    
    * core/state/snapshot: print warning if failed to resolve journal
    
    * core/state/snapshot: fix snapshot recovery
    
    When we meet the snapshot journal consisted with:
    - disk layer generator with new-format
    - diff layer journal with old-format
    
    The base layer should be returned without error.
    The broken diff layer can be reconstructed later
    but we definitely don't want to reconstruct the
    huge diff layer.
    
    * core: add tests
    rjl493456442 authored Nov 4, 2020
    Configuration menu
    Copy the full SHA
    e640267 View commit details
    Browse the repository at this point in the history
  3. cmd/devp2p, internal/utesting: implement TAP output (ethereum#21760)

    TAP is a text format for test results. Parsers for it are available in many languages,
    making it easy to consume. I want TAP output from our protocol tests because the
    Hive wrapper around them needs to know about the test names and their individual
    results and logs. It would also be possible to just write this info as JSON, but I don't
    want to invent a new format.
    
    This also improves the normal console output for tests (when running without --tap).
    It now prints -- RUN lines before any output from the test, and indents the log output
    by one space.
    fjl authored Nov 4, 2020
    Configuration menu
    Copy the full SHA
    5d20fbb View commit details
    Browse the repository at this point in the history
  4. cmd/devp2p/internal/ethtest: add correct chain files and improve test…

    … output (ethereum#21782)
    
    This PR replaces the old test genesis.json and chain.rlp files in the testdata
    directory for the eth protocol test suite, and also adds documentation for
    running the eth test suite locally.
    
    It also improves the test output text and adds more timeouts.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    renaynay and fjl authored Nov 4, 2020
    Configuration menu
    Copy the full SHA
    36bb7ac View commit details
    Browse the repository at this point in the history
  5. core/types, rlp: optimize derivesha (ethereum#21728)

    This PR contains a minor optimization in derivesha, by exposing the RLP
    int-encoding and making use of it to write integers directly to a
    buffer (an RLP integer is known to never require more than 9 bytes
    total). rlp.AppendUint64 might be useful in other places too.
    
    The code assumes, just as before, that the hasher (a trie) will copy the
    key internally, which it does when doing keybytesToHex(key).
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    holiman and fjl authored Nov 4, 2020
    Configuration menu
    Copy the full SHA
    175506e View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2020

  1. Configuration menu
    Copy the full SHA
    6cfe494 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ethereum#21787 from karalabe/pod-non-verbose

    build: stop verbose output to keep travis from overflowing
    karalabe authored Nov 5, 2020
    Configuration menu
    Copy the full SHA
    97fc1c3 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2020

  1. Configuration menu
    Copy the full SHA
    81ff700 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b7b327 View commit details
    Browse the repository at this point in the history
  3. trie, tests/fuzzers: implement a stacktrie fuzzer + stacktrie fixes (e…

    …thereum#21799)
    
    * trie: fix error in stacktrie not committing small roots
    
    * fuzzers: make trie-fuzzer use correct returnvalues
    
    * trie: improved tests
    
    * tests/fuzzers: fuzzer for stacktrie vs regular trie
    
    * test/fuzzers: make stacktrie fuzzer use 32-byte keys
    
    * trie: fix error in stacktrie with small nodes
    
    * trie: add (skipped) testcase for stacktrie
    
    * tests/fuzzers: address review comments for stacktrie fuzzer
    
    * trie: fix docs in stacktrie
    holiman authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    8167897 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb694ea View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1143dc6 View commit details
    Browse the repository at this point in the history
  6. Merge pull request ethereum#21806 from karalabe/deprecate-eoan

    build: stop building for Ubuntu Eoan, not supported any more
    karalabe authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    9e688fb View commit details
    Browse the repository at this point in the history
  7. Merge pull request ethereum#21805 from karalabe/travis-drop-1.13

    travis: drop Go 1.13 builders as it's not supported any more
    karalabe authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    040928d View commit details
    Browse the repository at this point in the history
  8. Merge pull request ethereum#21804 from karalabe/snapshot-marker-sync

    core/state/snapshot: update generator marker in sync with flushes
    karalabe authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    7c30f4d View commit details
    Browse the repository at this point in the history
  9. Merge pull request ethereum#21803 from holiman/ethash

    consensus/ethash: fix the percentage progress report
    karalabe authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    0c34eae View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2020

  1. p2p/simulations/adapters/exec: fix some issues (ethereum#21801)

    - Remove the ws:// prefix from the status endpoint since
      the ws:// is already included in the stack.WSEndpoint().
    - Don't register the services again in the node start.
      Registration is already done in the initialization stage.
    - Expose admin namespace via websocket.
      This namespace is necessary for connecting the peers via websocket.
    - Offer logging relevant options for exec adapter.
      It's really painful to mix all log output in the single console. So
      this PR offers two additional options for exec adapter in this case
      testers can config the log output(e.g. file output) and log level
      for each p2p node.
    rjl493456442 authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    c52dfd5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    941d8b5 View commit details
    Browse the repository at this point in the history
  3. fuzzers: removed fuzzbuzz configuration (ethereum#21813)

    We decided to move our fuzzing efforts to oss-fuzz since fuzzbuzz is still early access.
    MariusVanDerWijden authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    70868b1 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2020

  1. build: add -dlgo flag in ci.go (ethereum#21824)

    This new flag downloads a known version of Go and builds with it. This
    is meant for environments where we can't easily upgrade the installed Go
    version.
    
    * .travis.yml: remove install step for PR test builders
    
    We added this step originally to avoid re-building everything
    for every test. go test has become much smarter in recent go
    releases, so we no longer need to install anything here.
    fjl authored Nov 11, 2020
    Configuration menu
    Copy the full SHA
    27d93c1 View commit details
    Browse the repository at this point in the history
  2. consensus/ethash: use 64bit indexes for the DAG generation (ethereum#…

    …21793)
    
    * Bit boundary fix for the DAG generation routine
    
    * Fix unnecessary conversion warnings
    
    Co-authored-by: Sergey Pavlov <spavlov@gmail.com>
    slavikus and shrikus authored Nov 11, 2020
    Configuration menu
    Copy the full SHA
    d990df9 View commit details
    Browse the repository at this point in the history
  3. build: fix regressions with the -dlgo change (ethereum#21831)

    This fixes cross-build and mobile framework failures.
    It also disables the mac test builder because it was failing
    all the time in hard to understand ways and we can't afford
    it anymore under Travis CI's new pricing.
    fjl authored Nov 11, 2020
    Configuration menu
    Copy the full SHA
    d494074 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    920a287 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

  1. Configuration menu
    Copy the full SHA
    cc05b05 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    919229d View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2020

  1. crypto/bn256: improve bn256 fuzzer (ethereum#21815)

    * crypto/cloudflare: fix nil deref in random G1/G2 reading
    
    * crypto/bn256: improve fuzzer
    
    * crypto/bn256: fix some flaws in fuzzer
    holiman authored Nov 13, 2020
    Configuration menu
    Copy the full SHA
    a19b423 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ded4e3 View commit details
    Browse the repository at this point in the history
  3. tests/fuzzers: improve the fuzzers (ethereum#21829)

    * tests/fuzzers, common/bitutil: make fuzzers use correct returnvalues + remove output
    
    * tests/fuzzers/stacktrie: fix duplicate-key insertion in stacktrie (false positive)
    
    * tests/fuzzers/stacktrie: fix compilation error
    
    * tests/fuzzers: linter nits
    holiman authored Nov 13, 2020
    Configuration menu
    Copy the full SHA
    0703c91 View commit details
    Browse the repository at this point in the history
  4. core/vm, protocol_params: implement eip-2565 modexp repricing (ethere…

    …um#21607)
    
    * core/vm, protocol_params: implement eip-2565 modexp repricing
    
    * core/vm: fix review concerns
    holiman authored Nov 13, 2020
    Configuration menu
    Copy the full SHA
    6f4cccf View commit details
    Browse the repository at this point in the history
  5. core, all: split vm.Context into BlockContext and TxContext (ethereum…

    …#21672)
    
    * all: core: split vm.Config into BlockConfig and TxConfig
    
    * core: core/vm: reset EVM between tx in block instead of creating new
    
    * core/vm: added docs
    MariusVanDerWijden authored Nov 13, 2020
    Configuration menu
    Copy the full SHA
    2045a2b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cf856ea View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

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

Commits on Nov 17, 2020

  1. Configuration menu
    Copy the full SHA
    1ea7537 View commit details
    Browse the repository at this point in the history
  2. consensus/ethash: fix usage of *reflect.SliceHeader (ethereum#21372)

    * consensus/ethash: only use *reflect.SliceHeader, not reflect.SliceHeader. See comment here: https://github.com/golang/go/issues/40397\#issuecomment-663748689
    
    * consensus/ethash: pr feedback from @mdempsky, makes a copy of dest such that is not mutated
    
    * consensus/ethash: remove noop assign
    
    * consensus/ethash: apply same fix to another location
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    3 people authored Nov 17, 2020
    Configuration menu
    Copy the full SHA
    844485e View commit details
    Browse the repository at this point in the history
  3. cmd/geth: remove retesteth

    holiman committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    d513584 View commit details
    Browse the repository at this point in the history
  4. crypto/secp256k1: add checking z sign in affineFromJacobian (ethereum…

    …#18419)
    
    The z == 0 check is hit whenever we Add two points with the same x1/x2
    coordinate. crypto/elliptic uses the same check in their affineFromJacobian
    function. This change does not affect block processing or tx signature verification
    in any way, because it does not use the Add or Double methods.
    hbakhtiyor authored Nov 17, 2020
    Configuration menu
    Copy the full SHA
    db87223 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6b98580 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2020

  1. all: disable recording preimage of trie keys (ethereum#21402)

    * cmd, core, eth, light, trie: disable recording preimage by default
    
    * core, eth: fix unit tests
    
    * core: fix import
    
    * all: change to nopreimage
    
    * cmd, core, eth, trie: use cache.preimages flag
    
    * cmd: enable preimages for archive node
    
    * cmd/utils, trie: simplify preimage tracking a bit
    
    * core: fix linter
    
    Co-authored-by: Péter Szilágyi <peterke@gmail.com>
    rjl493456442 and karalabe authored Nov 18, 2020
    Configuration menu
    Copy the full SHA
    23524f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9ff57c View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2020

  1. Merge pull request ethereum#21861 from holiman/remove_retesteth

    cmd/geth: remove retesteth
    karalabe authored Nov 19, 2020
    Configuration menu
    Copy the full SHA
    2808046 View commit details
    Browse the repository at this point in the history
  2. node: support expressive origin rules in ws.origins (ethereum#21481)

    * Only compare hostnames in ws.origins
    
    Also using a helper function for ToLower consolidates all preparation steps in one function for more maintainable consistency.
    
    Spaces => tabs
    
    Remove a semicolon
    
    Add space at start of comment
    
    Remove parens around conditional
    
    Handle case wehre parsed hostname is empty
    
    When passing a single word like "localhost" the parsed hostname is an empty string. Handle this and the error-parsing case together as default, and the nonempty hostname case in the conditional.
    
    Refactor with new originIsAllowed functions
    
    Adds originIsAllowed() & ruleAllowsOrigin(); removes prepOriginForComparison
    
    Remove blank line
    
    Added tests for simple allowed-orign rule
    
    which does not specify a protocol or port, just a hostname
    
    Fix copy-paste: `:=` => `=`
    
    Remove parens around conditional
    
    Remove autoadded whitespace on blank lines
    
    Compare scheme, hostname, and port with rule
    
    if the rule specifies those portions.
    
    Remove one autoadded trailing whitespace
    
    Better handle case where only origin host is given
    
    e.g. "localhost"
    
    Remove parens around conditional
    
    Refactor: attemptWebsocketConnectionFromOrigin DRY
    
    Include return type on helper function
    
    Provide srv obj in helper fn
    
    Provide srv to helper fn
    
    Remove stray underscore
    
    Remove blank line
    
    parent 93e666b4c1e7e49b8406dc83ed93f4a02ea49ac1
    author wbt <wbt@users.noreply.github.com> 1598559718 -0400
    committer Martin Holst Swende <martin@swende.se> 1605602257 +0100
    gpgsig -----BEGIN PGP SIGNATURE-----
    
     iQFFBAABCAAvFiEEypmrtbNuJK1doP1AaDtDjAWl3fAFAl+zi9ARHG1hcnRpbkBz
     d2VuZGUuc2UACgkQaDtDjAWl3fDRiwgAoMtzU8dwRV7Q9xkCwWEx9Wz2f3n6jUr2
     VWBycDKGKwRkPPOER3oc9kzjGU/P1tFlK07PjfnAKZ9KWzxpDcJZwYM3xCBurG7A
     16y4YsQnzgPNONv3xIkdi3RZtDBIiPFFEmdZFFvZ/jKexfI6JIYPngCAoqdTIFb9
     On/aPvvVWQn1ExfmarsvvJ7kUDUG77tZipuacEH5FfFsfelBWOEYPe+I9ToUHskv
     +qO6rOkV1Ojk8eBc6o0R1PnApwCAlEhJs7aM/SEOg4B4ZJJneiFuEXBIG9+0yS2I
     NOicuDPLGucOB5nBsfIKI3USPeE+3jxdT8go2lN5Nrhm6MimoILDsQ==
     =sgUp
     -----END PGP SIGNATURE-----
    
    Refactor: drop err var for more concise test lines
    
    Add several tests for new WebSocket origin checks
    
    Remove autoadded whitespace on blank lines
    
    Restore TestWebsocketOrigins originally-named test
    
    and rename the others to be helpers rather than full tests
    
    Remove autoadded whitespace on blank line
    
    Temporarily comment out new test sets
    
    Uncomment test around origin rule with scheme
    
    Remove tests without scheme on browser origin
    
    per https://github.com/ethereum/go-ethereum/pull/21481/files#r479371498
    
    Uncomment tests with port; remove some blank lines
    
    Handle when browser does not specify scheme/port
    
    Uncomment test for including scheme & port in rule
    
    Add IP tests
    
    * node: more tests + table-driven, ws origin changes
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    wbt and holiman authored Nov 19, 2020
    Configuration menu
    Copy the full SHA
    f1e1d9f View commit details
    Browse the repository at this point in the history
  3. trie, rpc, cmd/geth: fix tests on 32-bit and windows + minor rpc fixes (

    ethereum#21871)
    
    * trie: fix tests to work on 32-bit systems
    
    * les: make test work on 32-bit platform
    
    * cmd/geth: fix windows-issues on tests
    
    * trie: improve balance
    
    * cmd/geth: make account tests less verbose + less mem intense
    
    * rpc: make debug-level log output less verbose
    
    * cmd/geth: lint
    holiman authored Nov 19, 2020
    Configuration menu
    Copy the full SHA
    6f88d65 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2020

  1. crypto/bn256: fix bn256Mul fuzzer to not hang on large input (ethereu…

    …m#21872)
    
    * crypto/bn256: fix bn256Mul fuzzer to not hang on large input
    
    * Update crypto/bn256/bn256_fuzz.go
    
    Co-authored-by: ligi <ligi@ligi.de>
    
    Co-authored-by: ligi <ligi@ligi.de>
    holiman and ligi authored Nov 20, 2020
    Configuration menu
    Copy the full SHA
    ebb9591 View commit details
    Browse the repository at this point in the history
  2. p2p: avoid spinning loop on out-of-handles (ethereum#21878)

    * p2p: avoid busy-loop on temporary errors
    
    * p2p: address review concerns
    holiman authored Nov 20, 2020
    Configuration menu
    Copy the full SHA
    3ef5277 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2020

  1. les/utils: protect against WeightedRandomSelect overflow (ethereum#21839

    )
    
    Also fixes a bug in les/flowcontrol that caused the overflow.
    zsfelfoldi authored Nov 23, 2020
    Configuration menu
    Copy the full SHA
    bddf5aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6e1aed View commit details
    Browse the repository at this point in the history
  3. tests/fuzzers/bls1381: add bls fuzzer (ethereum#21796)

    * added bls fuzzer
    
    * crypto/bls12381: revert bls-changes, fixup fuzzer tests
    
    * fuzzers: split bls fuzzing into 8 different units
    
    * fuzzers/bls: remove (now stale) corpus
    
    * crypto/bls12381: added blsfuzz corpus
    
    * fuzzers/bls12381: fix the bls corpus
    
    * fuzzers: fix oss-fuzz script
    
    * tests/fuzzers: fixups on bls corpus
    
    * test/fuzzers: remove leftover corpus
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    holiman and MariusVanDerWijden authored Nov 23, 2020
    Configuration menu
    Copy the full SHA
    6104ab6 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ethereum#21890 from ligi/issue_templates

    github: Add new style of issue-templates
    karalabe authored Nov 23, 2020
    Configuration menu
    Copy the full SHA
    ead8146 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2020

  1. cmd/faucet: improve handling of facebook post url (ethereum#21838)

    Resolves ethereum#21532
    
    Co-authored-by: roger <dengjun@huobi.com>
    LieutenantRoger and roger authored Nov 24, 2020
    Configuration menu
    Copy the full SHA
    6b58409 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bddd103 View commit details
    Browse the repository at this point in the history
  3. github: Remove vulnerability.md (ethereum#21894)

    This type is automatically offered by github after changing to the new style and a security.md being present
    ligi authored Nov 24, 2020
    Configuration menu
    Copy the full SHA
    7e7a3f0 View commit details
    Browse the repository at this point in the history
  4. cmd/devp2p/internal/ethtest: add 'large announcement' tests (ethereum…

    …#21792)
    
    * cmd/devp2p/internal/ethtest: added large announcement tests
    
    * cmd/devp2p/internal/ethtest: added large announcement tests
    
    * cmd/devp2p/internal/ethtest: refactored stuff a bit
    
    * cmd/devp2p/internal/ethtest: added TestMaliciousStatus/Handshake
    
    * cmd/devp2p/internal/ethtest: fixed rebasing issue
    
    * happy linter, happy life
    
    * cmd/devp2p/internal/ethtest: used readAndServe
    
    * stuff
    
    * cmd/devp2p/internal/ethtest: fixed test cases
    MariusVanDerWijden authored Nov 24, 2020
    Configuration menu
    Copy the full SHA
    59b480a View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2020

  1. Configuration menu
    Copy the full SHA
    29efe1f View commit details
    Browse the repository at this point in the history
  2. all: simplify nested complexity and if blocks ending with a return st…

    …atement (ethereum#21854)
    
    Changes:
    
        Simplify nested complexity
        If an if blocks ends with a return statement then remove the else nesting.
    
    Most of the changes has also been reported in golint https://goreportcard.com/report/github.com/ethereum/go-ethereum#golint
    alexprut authored Nov 25, 2020
    Configuration menu
    Copy the full SHA
    c92faee View commit details
    Browse the repository at this point in the history
  3. graphql: always return 400 if errors are present in the response (eth…

    …ereum#21882)
    
    * Make sure to return 400 when errors are present in the response
    
    * graphql: use less memory in chainconfig for tests
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    atoulme and holiman authored Nov 25, 2020
    Configuration menu
    Copy the full SHA
    f59ed35 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    810f9e0 View commit details
    Browse the repository at this point in the history
  5. p2p/discover: fix deadlock in discv5 message dispatch (ethereum#21858)

    This fixes a deadlock that could occur when a response packet arrived
    after a call had already received enough responses and was about to
    signal completion to the dispatch loop.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    nisdas and fjl authored Nov 25, 2020
    Configuration menu
    Copy the full SHA
    429e714 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2020

  1. crypto: signing builds with signify/minisign (ethereum#21798)

    * internal/build: implement signify's signing func
    * Add signify to the ci utility
    * fix output file format
    * Add unit test for signify
    * holiman's + travis' feedback
    * internal/build: verify signify's output
    * crypto: move signify to common dir
    * use go-minisign to verify binaries
    * more holiman feedback
    * crypto, ci: support minisign output
    * only accept one-line trusted comments
    * configurable untrusted comments
    * code cleanup in tests
    * revert to use ed25519 from the stdlib
    * bug: fix for empty untrusted comments
    * write timestamp as comment if trusted comment isn't present
    * rename line checker to commentHasManyLines
    * crypto: added signify fuzzer (nebulaai#6)
    * crypto: added signify fuzzer
    * stuff
    * crypto: updated signify fuzzer to fuzz comments
    * crypto: repro signify crashes
    * rebased fuzzer on build-signify branch
    * hide fuzzer behind gofuzz build flag
    * extract key data inside a single function
    * don't treat \r as a newline
    * travis: fix signing command line
    * do not use an external binary in tests
    * crypto: move signify to crypto/signify
    * travis: fix formatting issue
    * ci: fix linter build after package move
    
    Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
    gballet and MariusVanDerWijden authored Nov 27, 2020
    Configuration menu
    Copy the full SHA
    fa572cd View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2020

  1. accounts, signer: fix Ledger Live account derivation path (clef) (eth…

    …ereum#21757)
    
    * signer/core/api: fix derivation of ledger live accounts
    
    For ledger hardware wallets, change account iteration as follows:
    
    - ledger legacy: m/44'/60'/0'/X; for 0<=X<5
    - ledger live: m/44'/60'/0'/0/X; for 0<=X<5
    
    - ledger legacy: m/44'/60'/0'/X; for 0<=X<10
    - ledger live: m/44'/60'/X'/0/0; for 0<=X<10
    
    Non-ledger derivation is unchanged and remains as:
    - non-ledger: m/44'/60'/0'/0/X; for 0<=X<10
    
    * signer/core/api: derive ten default paths for all hardware wallets, plus ten legacy and ten live paths for ledger wallets
    
    * signer/core/api: as .../0'/0/0 already included by default paths, do not include it again with ledger live paths
    
    * accounts, signer: implement path iterators for hd wallets
    
    Co-authored-by: Martin Holst Swende <martin@swende.se>
    svenski123 and holiman authored Nov 29, 2020
    Configuration menu
    Copy the full SHA
    b71334a View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2020

  1. accounts/keystore: add missing function doc for SignText (ethereum#21914

    )
    
    Co-authored-by: Pascal Dierich <pascal@pascaldierich.com>
    pmerkleplant and PascalDierich authored Nov 30, 2020
    Configuration menu
    Copy the full SHA
    566cb4c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aba0c23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a1ddd9e View commit details
    Browse the repository at this point in the history
  4. p2p/nodestate: fix deadlock during shutdown of les server (ethereum#2…

    …1927)
    
    This PR fixes a deadlock reported here: ethereum#21925
    
    The cause is that many operations may be pending, but if the close happens, only one of them gets awoken and exits, the others remain waiting for a signal that never comes.
    holiman authored Nov 30, 2020
    Configuration menu
    Copy the full SHA
    e7db1db View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2020

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

Commits on Dec 2, 2020

  1. Configuration menu
    Copy the full SHA
    908c180 View commit details
    Browse the repository at this point in the history
  2. eth: fix error in tracing if reexec is set (ethereum#21830)

    * eth: fix error in tracing if reexec is set
    
    * eth: change pointer embedding to value-embedding
    holiman authored Dec 2, 2020
    Configuration menu
    Copy the full SHA
    e9e86ae View commit details
    Browse the repository at this point in the history
  3. go.mod: update github.com/golang/snappy(ethereum#21934)

    This updates the snappy library depency to include a fix for
    a Go 1.16 incompatibility issue.
    holiman authored Dec 2, 2020
    Configuration menu
    Copy the full SHA
    0b2f144 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2020

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

Commits on Dec 4, 2020

  1. core/vm/runtime: remove duplicated line (ethereum#21956)

    This line is duplicated, though it doesn't cause any issues.
    ziogaschr authored Dec 4, 2020
    Configuration menu
    Copy the full SHA
    62cedb3 View commit details
    Browse the repository at this point in the history
  2. core: improve contextual information on core errors (ethereum#21869)

    A lot of times when we hit 'core' errors, example: invalid tx, the information provided is
    insufficient. We miss several pieces of information: what account has nonce too high,
    and what transaction in that block was offending?
    
    This PR adds that information, using the new type of wrapped errors.
    It also adds a testcase which (partly) verifies the output from the errors.
    
    The first commit changes all usage of direct equality-checks on core errors, into
    using errors.Is. The second commit adds contextual information. This wraps most
    of the core errors with more information, and also wraps it one more time in
    stateprocessor, to further provide tx index and tx hash, if such a tx is encoutered in
    a block. The third commit uses the chainmaker to try to generate chains with such
    errors in them, thus triggering the errors and checking that the generated string meets
    expectations.
    holiman authored Dec 4, 2020
    Configuration menu
    Copy the full SHA
    7770e41 View commit details
    Browse the repository at this point in the history
  3. cmd/geth: implement vulnerability check (ethereum#21859)

    * cmd/geth: implement vulnerability check
    
    * cmd/geth: use minisign to verify vulnerability feed
    
    * cmd/geth: add the test too
    
    * cmd/geth: more minisig/signify testing
    
    * cmd/geth: support multiple pubfiles for signing
    
    * cmd/geth: add @holiman minisig pubkey
    
    * cmd/geth: polishes on vulnerability check
    
    * cmd/geth: fix ineffassign linter nit
    
    * cmd/geth: add CVE to version check struct
    
    * cmd/geth/testdata: add missing testfile
    
    * cmd/geth: add more keys to versionchecker
    
    * cmd/geth: support file:// URLs in version check
    
    * cmd/geth: improve key ID printing when signature check fails
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    holiman and fjl authored Dec 4, 2020
    Configuration menu
    Copy the full SHA
    15339cf View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2020

  1. les: cosmetic rewrite of the arm64 float bug workaround (ethereum#21960)

    * les: revert arm float bug workaround to check go 1.15
    
    * add traces to reproduce outside travis
    
    * simpler workaround
    gballet authored Dec 7, 2020
    Configuration menu
    Copy the full SHA
    581c028 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2020

  1. crypto/secp256k1: add workaround for go mod vendor (ethereum#21735)

    Go won't vendor C files if there are no Go files present in the directory.
    Workaround is to add dummy Go files.
    
    Fixes: ethereum#20232
    steveruckdashel authored Dec 8, 2020
    Configuration menu
    Copy the full SHA
    6a4e730 View commit details
    Browse the repository at this point in the history
  2. accounts/abi/bind: allow specifying signer on transactOpts (ethereum#…

    …21356)
    
    This commit enables users to specify which signer they want to use while creating their transactOpts.
    Previously all contract interactions used the homestead signer. Now a user can specify whether they
    want to sign with homestead or EIP155 and specify the chainID which adds another layer of security.
    
    Closes ethereum#16484
    MariusVanDerWijden authored Dec 8, 2020
    Configuration menu
    Copy the full SHA
    ed0670c View commit details
    Browse the repository at this point in the history
  3. common: improve printing of Hash and Address (ethereum#21834)

    Both Hash and Address have a String method, which returns the value as
    hex with 0x prefix. They also had a Format method which tried to print
    the value using printf of []byte. The way Format worked was at odds with
    String though, leading to a situation where fmt.Sprintf("%v", hash)
    returned the decimal notation and hash.String() returned a hex string.
    
    This commit makes it consistent again. Both types now support the %v,
    %s, %q format verbs for 0x-prefixed hex output. %x, %X creates
    unprefixed hex output. %d is also supported and returns the decimal
    notation "[1 2 3...]".
    
    For Address, the case of hex characters in %v, %s, %q output is
    determined using the EIP-55 checksum. Using %x, %X with Address
    disables checksumming.
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    lobatt and fjl authored Dec 8, 2020
    Configuration menu
    Copy the full SHA
    bd848aa View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2020

  1. core,les: headerchain import in batches (ethereum#21471)

    * core: add test for headerchain inserts
    
    * core, light: write headerchains in batches
    
    * core: change to one callback per batch of inserted headers + review concerns
    
    * core: error-check on batch write
    
    * core: unexport writeHeaders
    
    * core: remove callback parameter in InsertHeaderChain
    
    The semantics of InsertHeaderChain are now much simpler: it is now an
    all-or-nothing operation. The new WriteStatus return value allows
    callers to check for the canonicality of the insertion. This change
    simplifies use of HeaderChain in package les, where the callback was
    previously used to post chain events.
    
    * core: skip some hashing when writing headers
    
    * core: less hashing in header validation
    
    * core: fix headerchain flaw regarding blacklisted hashes
    
    Co-authored-by: Felix Lange <fjl@twurst.com>
    holiman and fjl authored Dec 9, 2020
    Configuration menu
    Copy the full SHA
    40b6ccf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    915643a View commit details
    Browse the repository at this point in the history
  3. crypto/signify, build: fix archive signing with signify (ethereum#21977)

    This fixes some issues in crypto/signify and makes release signing work.
    
    The archive signing step in ci.go used getenvBase64, which decodes the key data.
    This is incorrect here because crypto/signify already base64-decodes the key.
    fjl authored Dec 9, 2020
    Configuration menu
    Copy the full SHA
    f935b1d View commit details
    Browse the repository at this point in the history
  4. p2p/enode: avoid crashing for invalid IP (ethereum#21981)

    The database panicked for invalid IPs. This is usually no problem
    because all code paths leading to node DB access verify the IP, but it's
    dangerous because improper validation can turn this panic into a DoS
    vulnerability. The quick fix here is to just turn database accesses
    using invalid IP into a noop. This isn't great, but I'm planning to
    remove the node DB for discv5 long-term, so it should be fine to have
    this quick fix for half a year.
    
    Fixes ethereum#21849
    fjl authored Dec 9, 2020
    Configuration menu
    Copy the full SHA
    817a3fb View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2020

  1. les, light: remove untrusted header retrieval in ODR (ethereum#21907)

    * les, light: remove untrusted header retrieval in ODR
    
    * les: polish
    
    * light: check the hash equality in odr
    rjl493456442 authored Dec 10, 2020
    Configuration menu
    Copy the full SHA
    9f6bb49 View commit details
    Browse the repository at this point in the history
  2. core, trie: speed up some tests with quadratic processing flaw (ether…

    …eum#21987)
    
    This commit fixes a flaw in two testcases, and brings down the exec-time from ~40s to ~8s for trie/TestIncompleteSync.
    
    The checkConsistency was performed over and over again on the complete set of nodes, not just the recently added, turning it into a quadratic runtime.
    holiman authored Dec 10, 2020
    Configuration menu
    Copy the full SHA
    b44f24e View commit details
    Browse the repository at this point in the history
  3. les: introduce forkID (ethereum#21974)

    * les: introduce forkID
    
    * les: address comment
    rjl493456442 authored Dec 10, 2020
    Configuration menu
    Copy the full SHA
    0045410 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2020

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

Commits on Apr 7, 2021

  1. Merge branch 'release/1.9' of https://github.com/ethereum/go-ethereum

    …into merge_v1.9
    
    � Conflicts:
    �	cmd/utils/flags.go
    �	core/genesis_alloc.go
    �	eth/config.go
    �	params/bootnodes.go
    �	params/config.go
    �	tests/testdata
    czhang-nbai committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    d31a99f View commit details
    Browse the repository at this point in the history
  2. update README.md

    czhang-nbai committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    4c447a9 View commit details
    Browse the repository at this point in the history
  3. update Makefile

    czhang-nbai committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    b3d439a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f1627ce View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b0a2fa3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    390b183 View commit details
    Browse the repository at this point in the history