1. 06 Oct, 2022 4 commits
    • Martin Holst Swende's avatar
      core, ethclient/gethclient: improve flaky tests (#25918) · 067bac3f
      Martin Holst Swende authored
      * ethclient/gethclient: improve time-sensitive flaky test
      
      * eth/catalyst: fix (?) flaky test
      
      * core: stop blockchains in tests after use
      
      * core: fix dangling blockchain instances
      
      * core: rm whitespace
      
      * eth/gasprice, eth/tracers, consensus/clique: stop dangling blockchains in tests
      
      * all: address review concerns
      
      * core: goimports
      
      * eth/catalyst: fix another time-sensitive test
      
      * consensus/clique: add snapshot test run function
      
      * core: rename stop() to stopWithoutSaving()
      Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
      067bac3f
    • Martin Holst Swende's avatar
      core/bloombits: speed up windows-test (#25844) · deead997
      Martin Holst Swende authored
      core/bloombits: remove micro-sleep
      deead997
    • rjl493456442's avatar
      eth/traces: add state limit (#25812) · e50aeac4
      rjl493456442 authored
      This PR introduces a new mechanism in chain tracer for preventing creating too many trace states.
      
      The workflow of chain tracer can be divided into several parts:
      
      - state creator generates trace state in a thread
      - state tracer retrieves the trace state and applies the tracing on top in another thread
      - state collector gathers all result from state tracer and stream to users
      
      It's basically a producer-consumer model here, while if we imagine that the state producer generates states too fast, then it will lead to accumulate lots of unused states in memory. Even worse, in path-based state scheme it will only keep the latest 128 states in memory, and the newly generated state will invalidate the oldest one by marking it as stale.
      
      The solution for fixing it is to limit the speed of state generation. If there are over 128 states un-consumed in memory, then the creation will be paused until the states are be consumed properly.
      e50aeac4
    • Delweng's avatar
      eth/tracers: add diffMode to prestateTracer (#25422) · 5d52a359
      Delweng authored
      Backwards compatibility warning: The result will from now on omit empty fields instead
      of including a zero value (e.g. no more `balance: '0x'`).
      
      The prestateTracer will now take an option `diffMode: bool`. In this mode
      the tracer will output the pre state and post data for the modified parts of state.
      Read-only accesses will be completely omitted. Creations (be it account or slot)
      will be signified by omission in the `pre` list and inclusion in `post`. Whereas
      deletion (be it account or slot) will be signified by inclusion in `pre` and omission
      in `post` list.
      Signed-off-by: 's avatarDelweng <delweng@gmail.com>
      5d52a359
  2. 04 Oct, 2022 3 commits
  3. 03 Oct, 2022 3 commits
  4. 30 Sep, 2022 1 commit
  5. 29 Sep, 2022 5 commits
  6. 28 Sep, 2022 6 commits
  7. 27 Sep, 2022 4 commits
  8. 26 Sep, 2022 9 commits
  9. 23 Sep, 2022 5 commits
    • Zachinquarantine's avatar
      cmd/puppeth, cmd/utils: finalize removal of gasTarget flag (#24370) · 15b4a4bf
      Zachinquarantine authored
      This PR fully removes the --miner.gastarget flag, as previously it was only hidden from the geth --help command, but could still be used.
      15b4a4bf
    • rjl493456442's avatar
      all: clean up the configs for pruner and snapshotter (#22396) · 3da42f85
      rjl493456442 authored
      This PR cleans up the configurations for pruner and snapshotter by passing a config struct.
      
      And also, this PR disables the snapshot background generation if the chain is opened in "read-only" mode. The read-only mode is necessary in some cases. For example, we have a list of commands to open the etheruem node in "read-only" mode, like export-chain. In these cases, the snapshot background generation is non expected and should be banned explicitly.
      3da42f85
    • Zachinquarantine's avatar
      tests, les, eth: remove mentions of deprecated Morden testnet (#23570) · 9b35f3f5
      Zachinquarantine authored
      * remove morden
      
      * Update commons.go
      
      * Update handler.go
      
      * empty commit to make appveyor happy
      9b35f3f5
    • Sebastian Stammler's avatar
      cmd/abigen: change --exc to exclude by type name (#22620) · e8780672
      Sebastian Stammler authored
      The abigen exclusion pattern, previously on the form "path:type", now supports wildcards. Examples "*:type" to exclude a named type in all files, or "/path/to/foo.sol:*" all types in foo.sol.
      e8780672
    • Felix Lange's avatar
      internal/version: use gitCommit injection in version handling code (#25851) · 65f3c1b4
      Felix Lange authored
      This changes the CI build to store the git commit and date into package
      internal/version instead of package main. Doing this essentially merges our
      two ways of tracking the go-ethereum version into a single place, achieving
      two objectives:
      
      - Bad block reports, which use version.Info(), will now have the git commit
        information even when geth is built in an environment such as
        launchpad.net where git access is unavailable.
      
      - For geth builds created by `go build ./cmd/geth` (i.e. not using `go run
        build/ci.go install`), git information stored by the go tool is now used
        in the p2p node name as well as in `geth version` and `geth
        version-check`.
      65f3c1b4