good morning!!!!

Skip to content
Snippets Groups Projects
  1. Mar 09, 2021
    • Alex Prut's avatar
      all: remove unneeded parentheses (#21921) · 1fb76cca
      Alex Prut authored
      * remove uneeded convertion type
      
      * remove redundant type in composite literal
      
      * omit explicit type where implicit
      
      * remove unused redundant parenthesis
      
      * remove redundant import alias duktape
      # Conflicts:
      #	core/state/snapshot/conversion.go
      #	eth/tracers/tracer.go
      #	metrics/cpu_syscall.go
      #	trie/trie_test.go
      1fb76cca
    • rene's avatar
      cmd/geth, node: allow configuring JSON-RPC on custom path prefix (#22184) · a0af3830
      rene authored
      
      This change allows users to set a custom path prefix on which to mount the http-rpc
      or ws-rpc handlers via the new flags --http.rpcprefix and --ws.rpcprefix.
      
      Fixes #21826
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      # Conflicts:
      #	cmd/geth/main.go
      #	cmd/geth/usage.go
      #	cmd/utils/flags.go
      #	go.sum
      #	graphql/graphql_test.go
      #	node/node_test.go
      #	node/rpcstack_test.go
      a0af3830
    • Péter Szilágyi's avatar
      eth: check snap satelliteness, delegate drop to eth (#22235) · 08ad6aae
      Péter Szilágyi authored
      * eth: check snap satelliteness, delegate drop to eth
      
      * eth: better handle eth/snap satellite relation, merge reg/unreg paths
      # Conflicts:
      #	eth/handler.go
      #	eth/peer.go
      08ad6aae
    • Sina Mahmoodi's avatar
      eth/tracers: fix unigram tracer (#22248) · 89846dec
      Sina Mahmoodi authored
      89846dec
    • Martin Holst Swende's avatar
      227c57cd
    • Felföldi Zsolt's avatar
      les/utils: UDP rate limiter (#21930) · efb94a9c
      Felföldi Zsolt authored
      * les/utils: Limiter
      
      * les/utils: dropped prior weight vs variable cost logic, using fixed weights
      
      * les/utils: always create node selector in addressGroup
      
      * les/utils: renamed request weight to request cost
      
      * les/utils: simplified and improved the DoS penalty mechanism
      
      * les/utils: minor fixes
      
      * les/utils: made selection weight calculation nicer
      
      * les/utils: fixed linter warning
      
      * les/utils: more precise and reliable probabilistic test
      
      * les/utils: fixed linter warning
      # Conflicts:
      #	les/utils/weighted_select.go
      efb94a9c
    • Sina Mahmoodi's avatar
      cmd,core,eth,params,tests: define yolov3 + enable EIP-2565 (#22213) · c3760390
      Sina Mahmoodi authored
      Removes the yolov2 definition, adds yolov3, including EIP-2565. This PR also disables some of the erroneously generated blockchain and statetests, and adds the new genesis hash + alloc for yolov3.
      This PR disables the CLI switches for yolo, since it's not complete until we merge support for 2930.
      # Conflicts:
      #	cmd/evm/internal/t8ntool/execution.go
      #	cmd/geth/chaincmd.go
      #	cmd/geth/consolecmd.go
      #	cmd/geth/main.go
      #	cmd/geth/usage.go
      #	cmd/utils/flags.go
      #	core/state_processor.go
      #	core/vm/evm.go
      #	core/vm/interpreter.go
      #	tests/block_test.go
      c3760390
    • Guillaume Ballet's avatar
      rpc: deprecate Client.ShhSubscribe (#22239) · f409cdad
      Guillaume Ballet authored
      
      It never worked, whisper uses polling.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      f409cdad
    • Felföldi Zsolt's avatar
      les: switch to new discv5 (#21940) · 0d8a69b8
      Felföldi Zsolt authored
      
      This PR enables running the new discv5 protocol in both LES client
      and server mode. In client mode it mixes discv5 and dnsdisc iterators
      (if both are enabled) and filters incoming ENRs for "les" tag and fork ID.
      The old p2p/discv5 package and all references to it are removed.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      # Conflicts:
      #	cmd/bootnode/main.go
      #	cmd/faucet/faucet.go
      #	cmd/utils/flags.go
      #	les/client.go
      #	les/commons.go
      #	les/enr_entry.go
      #	les/server.go
      #	les/serverpool.go
      #	les/serverpool_test.go
      #	mobile/discover.go
      #	mobile/params.go
      #	p2p/discv5/database.go
      #	p2p/discv5/metrics.go
      #	p2p/discv5/net.go
      #	p2p/discv5/net_test.go
      #	p2p/discv5/node.go
      #	p2p/discv5/node_test.go
      #	p2p/discv5/sim_test.go
      #	p2p/discv5/table.go
      #	p2p/discv5/table_test.go
      #	p2p/discv5/ticket.go
      #	p2p/discv5/topic.go
      #	p2p/discv5/topic_test.go
      #	p2p/discv5/udp.go
      #	p2p/server.go
      0d8a69b8
    • Guillaume Ballet's avatar
      e90a6ecd
    • Felix Lange's avatar
      accounts/scwallet: use go-ethereum crypto instead of go-ecdh (#22212) · b33db3f1
      Felix Lange authored
      
      * accounts/scwallet: use go-ethereum crypto instead of go-ecdh
      
      github.com/wsddn/go-ecdh is a wrapper package for ECDH functionality
      with any elliptic curve.
      
      Since 'generic' ECDH is not required in accounts/scwallet (the curve is
      always secp256k1), we can just use the standard library functionality
      and our own crypto libraries to perform ECDH and save a dependency.
      
      * Update accounts/scwallet/securechannel.go
      
      Co-authored-by: default avatarGuillaume Ballet <gballet@gmail.com>
      
      * Use the correct key
      
      Co-authored-by: default avatarGuillaume Ballet <gballet@gmail.com>
      # Conflicts:
      #	accounts/scwallet/securechannel.go
      #	go.mod
      #	go.sum
      b33db3f1
    • Martin Holst Swende's avatar
      core: speed up header import (#21967) · c2181323
      Martin Holst Swende authored
      This PR implements the following modifications
      
      - Don't shortcut check if block is present, thus avoid disk lookup
      - Don't check hash ancestry in early-check (it's still done in parallel checker)
      - Don't check time.Now for every single header
      
      Charts and background info can be found here: https://github.com/holiman/headerimport/blob/main/README.md
      With these changes, writing 1M headers goes down to from 80s to 62s.
      # Conflicts:
      #	consensus/ethash/consensus.go
      #	core/rawdb/freezer_table.go
      c2181323
    • Martin Holst Swende's avatar
      core/state: fix panic in state dumping (#22225) · cd63ae0f
      Martin Holst Swende authored
      # Conflicts:
      #	core/state/dump.go
      cd63ae0f
    • Péter Szilágyi's avatar
      internal/ethapi: print tx details when submitting (#22170) · 951ba14b
      Péter Szilágyi authored
      
      This adds more info about submitted transactions in log messages.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      951ba14b
    • Marius van der Wijden's avatar
      tests/fuzzers/abi: fixed one-off panic with int.Min64 value (#22233) · ba1cf559
      Marius van der Wijden authored
      * tests/fuzzers/abi: fixed one-off panic with int.Min64 value
      
      * tests/fuzzers/abi: fixed one-off panic with int.Min64 value
      ba1cf559
    • Martin Holst Swende's avatar
      eth, p2p: reserve half peer slots for snap peers during snap sync (#22171) · ff2b5888
      Martin Holst Swende authored
      * eth, p2p: reserve half peer slots for snap peers during snap sync
      
      * eth: less logging
      
      * eth: rework the eth/snap peer reservation logic
      
      * eth: rework the eth/snap peer reservation logic (again)
      ff2b5888
    • gary rong's avatar
      eth/tracers: move tracing APIs into eth/tracers (#22161) · 7cf0ff3b
      gary rong authored
      This moves the tracing RPC API implementation to package eth/tracers.
      By doing so, package eth no longer depends on tracing and the duktape JS engine.
      
      The change also enables tracing using the light client. All tracing methods work with the
      light client, but it's a lot slower compared to using a full node.
      # Conflicts:
      #	cmd/utils/flags.go
      #	eth/api.go
      #	eth/tracers/api.go
      #	les/api_backend.go
      7cf0ff3b
    • gary rong's avatar
      core: reset to genesis when middle block is missing (#22135) · d30c9d7d
      gary rong authored
      When a sethead/rewind finds that the targeted block is missing, it resets to genesis instead of crashing. Closes #22129
      # Conflicts:
      #	core/blockchain.go
      d30c9d7d
    • Melvin Junhee Woo's avatar
      snapshot: merge loops for better performance (#22160) · ceddabdf
      Melvin Junhee Woo authored
      # Conflicts:
      #	core/state/snapshot/difflayer.go
      ceddabdf
    • Igor Mandrigin's avatar
      go.mod: upgrade github.com/huin/goupnp · 2ea14f63
      Igor Mandrigin authored
      2ea14f63
    • rene's avatar
      graphql: change receipt status to decimal instead of hex (#22187) · dc93ddac
      rene authored
      
      This PR fixes the receipt status field to be decimal instead of a hex string,
      as called for by the spec.
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      dc93ddac
    • Marius van der Wijden's avatar
      go.mod: update dependencies (#22216) · 75d76876
      Marius van der Wijden authored
      This updates go module dependencies as discussed in #22050.
      # Conflicts:
      #	go.mod
      #	go.sum
      75d76876
    • Martin Holst Swende's avatar
      eth/protocols/snap: snap sync testing (#22179) · e6dd171f
      Martin Holst Swende authored
      
      * eth/protocols/snap: make timeout configurable
      
      * eth/protocols/snap: snap sync testing
      
      * eth/protocols/snap: test to trigger panic
      
      * eth/protocols/snap: fix race condition on timeouts
      
      * eth/protocols/snap: return error on cancelled sync
      
      * squashme: updates + test causing panic + properly serve accounts in order
      
      * eth/protocols/snap: revert failing storage response
      
      * eth/protocols/snap: revert on bad responses (storage, code)
      
      * eth/protocols/snap: fix account handling stall
      
      * eth/protocols/snap: fix remaining revertal-issues
      
      * eth/protocols/snap: timeouthandler for bytecode requests
      
      * eth/protocols/snap: debugging + fix log message
      
      * eth/protocols/snap: fix misspelliings in docs
      
      * eth/protocols/snap: fix race in bytecode handling
      
      * eth/protocols/snap: undo deduplication of storage roots
      
      * synctests: refactor + minify panic testcase
      
      * eth/protocols/snap: minor polishes
      
      * eth: minor polishes to make logs more useful
      
      * eth/protocols/snap: remove excessive logs from the test runs
      
      * eth/protocols/snap: stress tests with concurrency
      
      * eth/protocols/snap: further fixes to test cancel channel handling
      
      * eth/protocols/snap: extend test timeouts on CI
      
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      e6dd171f
    • ligi's avatar
      cmd, geth: CLI help fixes (#22220) · a7b9ff72
      ligi authored
      * cmd, geth: Reflect command being optional - closes 22218
      
      * cmd, geth: Set current year to 2021
      a7b9ff72
    • Felix Lange's avatar
      common/mclock: remove dependency on github.com/aristanetworks/goarista (#22211) · f984684f
      Felix Lange authored
      It takes three lines of code to get to runtime.nanotime, no need to
      pull a dependency for that.
      # Conflicts:
      #	go.mod
      #	go.sum
      f984684f
    • gary rong's avatar
      trie: fix range prover (#22210) · c57f9f1f
      gary rong authored
      Fixes a special case when the trie only has a single trie node and the range proof only contains a single element.
      # Conflicts:
      #	trie/proof.go
      #	trie/proof_test.go
      c57f9f1f
    • Łukasz Zimnoch's avatar
      event: add ResubscribeErr (#22191) · d69a25a1
      Łukasz Zimnoch authored
      
      This adds a way to get the error of the failing subscription
      for logging/debugging purposes.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      d69a25a1
    • Sina Mahmoodi's avatar
      eth/filters: fix potential deadlock in filter timeout loop (#22178) · 92c1b861
      Sina Mahmoodi authored
      This fixes #22131 and adds a test reproducing the issue.
      # Conflicts:
      #	eth/filters/filter_system_test.go
      #	les/client.go
      92c1b861
    • Péter Szilágyi's avatar
      core/state: convert prefetcher to concurrent per-trie loader · 40a36608
      Péter Szilágyi authored
      # Conflicts:
      #	accounts/abi/bind/backends/simulated.go
      #	core/blockchain.go
      #	core/state/state_object.go
      #	core/state/state_test.go
      #	core/state/statedb.go
      #	core/state/statedb_test.go
      #	eth/api_tracer.go
      #	miner/worker.go
      40a36608
    • Martin Holst Swende's avatar
      core: implement background trie prefetcher · 6c3d78d0
      Martin Holst Swende authored
      Squashed from the following commits:
      
      core/state: lazily init snapshot storage map
      core/state: fix flawed meter on storage reads
      core/state: make statedb/stateobjects reuse a hasher
      core/blockchain, core/state: implement new trie prefetcher
      core: make trie prefetcher deliver tries to statedb
      core/state: refactor trie_prefetcher, export storage tries
      blockchain: re-enable the next-block-prefetcher
      state: remove panics in trie prefetcher
      core/state/trie_prefetcher: address some review concerns
      
      sq
      
      # Conflicts:
      #	core/blockchain.go
      #	core/state/database.go
      #	core/state/state_object.go
      #	core/state/statedb.go
      6c3d78d0
    • meowsbits's avatar
      downloader: extract findAncestor search functions (#21744) · 71a78faf
      meowsbits authored
      This is a simple refactoring, extracting common ancestor
      negotiation logic to named function
      71a78faf
    • ucwong's avatar
      go.mod: upgrade golang-lru (#22134) · 13eecf52
      ucwong authored
      # Conflicts:
      #	go.mod
      #	go.sum
      13eecf52
    • Marius van der Wijden's avatar
      oss-fuzz: fix abi fuzzer (#22199) · 14a8a755
      Marius van der Wijden authored
      14a8a755
    • gary rong's avatar
      eth, les: add new config field SyncFromCheckpoint (#22123) · 773ca75c
      gary rong authored
      This PR introduces a new config field SyncFromCheckpoint for light client.
      
      In some special scenarios, it's required to start synchronization from some
      arbitrary checkpoint or even from the scratch. So this PR offers this
      flexibility to users so that the synchronization start point can be configured.
      
      There are two relevant configs: SyncFromCheckpoint and Checkpoint.
      
      - If the SyncFromCheckpoint is true, the light client will try to sync from the
        specified checkpoint.
      
      - If the Checkpoint is not configured, then the light client will sync from the
        scratch(from the latest header if the database is not empty)
      
      Additional notes: these two configs are not visible in the CLI flags but only
      accessable in the config file.
      
      Example Usage:
      
      [Eth]
      SyncFromCheckpoint = true
      
      [Eth.Checkpoint]
      SectionIndex = 100
      SectionHead = "0xabc"
      CHTRoot = "0xabc"
      BloomRoot = "0xabc"
      
      PS. Historical checkpoint can be retrieved from the synced full node or light
      client via les_getCheckpoint API.
      # Conflicts:
      #	eth/gen_config.go
      #	les/client_handler.go
      #	les/commons.go
      #	les/sync.go
      #	les/sync_test.go
      #	les/test_helper.go
      773ca75c
    • Alex Mazalov's avatar
      cmd/geth: graceful shutdown if disk is full (#22103) · ed42a61c
      Alex Mazalov authored
      
      Adding warnings of free disk space left and graceful shutdown when there is not enough space left.
      This also adds a flag datadir.minfreedisk which can be used to set the trigger for low disk space, and setting it to zero disables the check.
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      # Conflicts:
      #	cmd/geth/main.go
      #	cmd/geth/usage.go
      #	cmd/utils/cmd.go
      ed42a61c
    • gary rong's avatar
      core/state/snapshot: write snapshot generator in batch (#22163) · 62365231
      gary rong authored
      * core/state/snapshot: write snapshot generator in batch
      
      * core: refactor the tests
      
      * core: update tests
      
      * core: update tests
      # Conflicts:
      #	core/blockchain_snapshot_test.go
      #	core/state/snapshot/generate.go
      #	core/state/snapshot/journal.go
      62365231
    • Marius van der Wijden's avatar
      cmd/geth: dump config for metrics (#22083) · e78f1a9f
      Marius van der Wijden authored
      * cmd/geth: dump config
      
      * cmd/geth: dump config
      
      * cmd/geth: properly read config again
      
      * cmd/geth: override metrics if flags are set
      
      * cmd/geth: write metrics regardless if enabled
      
      * cmd/geth: renamed to metricsfromcliargs
      
      * metrics: add default configuration
      # Conflicts:
      #	cmd/geth/config.go
      e78f1a9f
    • Marius van der Wijden's avatar
      tests/fuzzers/abi: better test generation (#22158) · 519d6e3e
      Marius van der Wijden authored
      * tests/fuzzers/abi: better test generation
      
      * tests/fuzzers/abi: fixed packing issue
      
      * oss-fuzz: enable abi fuzzer
      # Conflicts:
      #	tests/fuzzers/abi/abifuzzer.go
      519d6e3e
    • gary rong's avatar
      les: remove useless protocol defines (#22115) · 6d9c22a5
      gary rong authored
      This PR has two changes in the les protocol:
      
      - the auxRoot is not supported. See ethereum/devp2p#171 for more information
      - the empty response will be returned in GetHelperTrieProofsMsg request if the merkle
         proving is failed. note, for backward compatibility, the empty merkle proof as well as
         the request auxiliary data will still be returned in  les2/3 protocol no matter the proving
         is successful or not. the proving failure can happen e.g. request the proving for a
         non-included entry in helper trie (unstable header).
      # Conflicts:
      #	les/benchmark.go
      #	les/handler_test.go
      #	les/odr_requests.go
      #	les/server_handler.go
      6d9c22a5
    • Dan DeGreef's avatar
      a3d76f17
Loading