good morning!!!!

Skip to content
Snippets Groups Projects
  1. Apr 21, 2021
  2. Apr 16, 2021
  3. Apr 09, 2021
  4. Apr 07, 2021
    • Marius van der Wijden's avatar
      core, eth, internal/ethapi: create access list RPC API (#22550) · 9d10856e
      Marius van der Wijden authored
      
      * core/vm: implement AccessListTracer
      
      * eth: implement debug.createAccessList
      
      * core/vm: fixed nil panics in accessListTracer
      
      * eth: better error messages for createAccessList
      
      * eth: some fixes on CreateAccessList
      
      * eth: allow for provided accesslists
      
      * eth: pass accesslist by value
      
      * eth: remove created acocunt from accesslist
      
      * core/vm: simplify access list tracer
      
      * core/vm: unexport accessListTracer
      
      * eth: return best guess if al iteration times out
      
      * eth: return best guess if al iteration times out
      
      * core: docstring, unexport methods
      
      * eth: typo
      
      * internal/ethapi: move createAccessList to eth package
      
      * internal/ethapi: remove reexec from createAccessList
      
      * internal/ethapi: break if al is equal to last run, not if gas is equal
      
      * internal/web3ext: fixed arguments
      
      * core/types: fixed equality check for accesslist
      
      * core/types: no hardcoded vals
      
      * core, internal: simplify access list generation, make it precise
      
      * core/vm: fix typo
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      Unverified
      9d10856e
    • Gary Rong's avatar
      eth, les: fix tracers (#22473) · a600dab7
      Gary Rong authored
      * eth, les: fix tracer
      
      * eth: isolate live trie database in tracer
      
      * eth: fix nil
      
      * eth: fix
      
      * eth, les: add checkLive param
      
      * eth/tracer: fix
      Unverified
      a600dab7
  5. Apr 06, 2021
    • Zsolt Felföldi's avatar
      les: move client pool to les/vflux/server (#22495) · 2d89fe08
      Zsolt Felföldi authored
      
      * les: move client pool to les/vflux/server
      
      * les/vflux/server: un-expose NodeBalance, remove unused fn, fix bugs
      
      * tests/fuzzers/vflux: add ClientPool fuzzer
      
      * les/vflux/server: fixed balance tests
      
      * les: rebase fix
      
      * les/vflux/server: fixed more bugs
      
      * les/vflux/server: unexported NodeStateMachine fields and flags
      
      * les/vflux/server: unexport all internal components and functions
      
      * les/vflux/server: fixed priorityPool test
      
      * les/vflux/server: polish balance
      
      * les/vflux/server: fixed mutex locking error
      
      * les/vflux/server: priorityPool bug fixed
      
      * common/prque: make Prque wrap-around priority handling optional
      
      * les/vflux/server: rename funcs, small optimizations
      
      * les/vflux/server: fixed timeUntil
      
      * les/vflux/server: separated balance.posValue and negValue
      
      * les/vflux/server: polish setup
      
      * les/vflux/server: enforce capacity curve monotonicity
      
      * les/vflux/server: simplified requestCapacity
      
      * les/vflux/server: requestCapacity with target range, no iterations in SetCapacity
      
      * les/vflux/server: minor changes
      
      * les/vflux/server: moved default factors to balanceTracker
      
      * les/vflux/server: set inactiveFlag in priorityPool
      
      * les/vflux/server: moved related metrics to vfs package
      
      * les/vflux/client: make priorityPool temp state logic cleaner
      
      * les/vflux/server: changed log.Crit to log.Error
      
      * add vflux fuzzer to oss-fuzz
      
      Co-authored-by: default avatarrjl493456442 <garyrong0905@gmail.com>
      Unverified
      2d89fe08
  6. Mar 24, 2021
    • Felix Lange's avatar
      cmd/devp2p: skip ENR field tails properly in nodeset filter (#22565) · 5129cdc4
      Felix Lange authored
      In Geth v1.10, we changed the structure of the "les" ENR entry. As a result, the DHT crawler that creates the DNS lists
      no longer recognizes the les nodes, which is fixed in this commit. 
      
      * cmd/devp2p: skip ENR field tails properly in nodeset filter
      * cmd/devp2p: fix tail decoder for snap as well
      * les: fix tail decoding in "eth" ENR entry
      Unverified
      5129cdc4
  7. Mar 22, 2021
    • Gary Rong's avatar
      all: add read-only option to database (#22407) · 0c70b83e
      Gary Rong authored
      * all: add read-only option to database
      
      * all: fixes tests
      
      * cmd/geth: migrate flags
      
      * cmd/geth: fix the compact
      
      * cmd/geth: fix the format
      
      * cmd/geth: fix log
      
      * cmd: add chain-readonly
      
      * core: add readonly notion to freezer
      
      * core/rawdb: add log
      
      * core/rawdb: fix freezer close
      
      * cmd: fix
      
      * cmd, core: construct db
      
      * core: update tests
      Unverified
      0c70b83e
  8. Mar 16, 2021
    • Zsolt Felföldi's avatar
    • Zsolt Felföldi's avatar
      les: fix UDP connection query (#22451) · 62d8022b
      Zsolt Felföldi authored
      This PR fixes multiple issues with the UDP connection pre-negotiation feature:
      
      - the enable condition was wrong (it checked the existence of the DiscV5 struct where it wasn't initialized yet, disabling the feature even if discv5 was enabled)
      - the server pool queried already connected nodes when the discovery iterators returned them again
      - servers responded positively before they were synced and really willing to accept connections
      
      Metrics are also added on the server side that count the positive and negative replies to served connection queries.
      Unverified
      62d8022b
    • Martin Holst Swende's avatar
      tests/fuzzers: fix goroutine leak in les fuzzer (#22455) · bc479936
      Martin Holst Swende authored
      The oss-fuzz fuzzer has been reporting some failing testcases for les. They're all spurious, and cannot reliably be reproduced. However, running them showed that there was a goroutine leak: the tests created a lot of new clients, which started an exec queue that was never torn down.
      
      This PR fixes the goroutine leak, and also a log message which was erroneously formatted.
      Unverified
      bc479936
  9. Mar 14, 2021
  10. Mar 09, 2021
  11. Mar 03, 2021
  12. Mar 01, 2021
  13. Feb 26, 2021
  14. Feb 25, 2021
    • Zsolt Felföldi's avatar
      les: move server pool to les/vflux/client (#22377) · dc109cce
      Zsolt Felföldi authored
      * les: move serverPool to les/vflux/client
      
      * les: add metrics
      
      * les: moved ValueTracker inside ServerPool
      
      * les: protect against node registration before server pool is started
      
      * les/vflux/client: fixed tests
      
      * les: make peer registration safe
      Unverified
      dc109cce
    • lightclient's avatar
      all: add support for EIP-2718, EIP-2930 transactions (#21502) · bbfb1e40
      lightclient authored
      
      This adds support for EIP-2718 typed transactions as well as EIP-2930
      access list transactions (tx type 1). These EIPs are scheduled for the
      Berlin fork.
      
      There very few changes to existing APIs in core/types, and several new APIs
      to deal with access list transactions. In particular, there are two new
      constructor functions for transactions: types.NewTx and types.SignNewTx.
      Since the canonical encoding of typed transactions is not RLP-compatible,
      Transaction now has new methods for encoding and decoding: MarshalBinary
      and UnmarshalBinary.
      
      The existing EIP-155 signer does not support the new transaction types.
      All code dealing with transaction signatures should be updated to use the
      newer EIP-2930 signer. To make this easier for future updates, we have
      added new constructor functions for types.Signer: types.LatestSigner and
      types.LatestSignerForChainID. 
      
      This change also adds support for the YoloV3 testnet.
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      Co-authored-by: default avatarRyan Schneider <ryanleeschneider@gmail.com>
      Unverified
      bbfb1e40
    • Gary Rong's avatar
      les, light: improve txstatus retrieval (#22349) · 7a3c8900
      Gary Rong authored
      Transaction unindexing will be enabled by default as of 1.10, which causes tx status retrieval will be broken without this PR. 
      
      This PR introduces a retry mechanism in TxStatus retrieval.
      Unverified
      7a3c8900
    • Gary Rong's avatar
      cmd, eth, les: enable serving light clients when non-synced (#22250) · 378e961d
      Gary Rong authored
      This PR adds a more CLI flag, so that the les-server can serve light clients even the local node is not synced yet.
      
      This functionality is needed in some testing environments(e.g. hive). After launching the les server, no more blocks will be imported so the node is always marked as "non-synced".
      Unverified
      378e961d
  15. Feb 23, 2021
  16. Feb 22, 2021
  17. Feb 20, 2021
  18. Feb 19, 2021
  19. Feb 12, 2021
  20. Feb 05, 2021
  21. Feb 02, 2021
  22. Jan 28, 2021
    • Zsolt Felföldi's avatar
      les/utils: UDP rate limiter (#21930) · 7a800f98
      Zsolt Felföldi 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
      Unverified
      7a800f98
  23. Jan 26, 2021
    • Zsolt Felföldi's avatar
      les: switch to new discv5 (#21940) · a72fa88a
      Zsolt Felföldi 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>
      Unverified
      a72fa88a
  24. Jan 25, 2021
    • Gary Rong's avatar
      eth/tracers: move tracing APIs into eth/tracers (#22161) · adf130de
      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.
      Unverified
      adf130de
  25. Jan 21, 2021
  26. Jan 19, 2021
    • Gary Rong's avatar
      eth, les: add new config field SyncFromCheckpoint (#22123) · 45cb1a58
      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.
      Unverified
      45cb1a58
  27. Jan 16, 2021
    • Gary Rong's avatar
      les: remove useless protocol defines (#22115) · 034ecc32
      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).
      Unverified
      034ecc32
  28. Jan 15, 2021
  29. Jan 07, 2021
  30. Dec 23, 2020
  31. Dec 15, 2020
  32. Dec 14, 2020
  33. Dec 11, 2020
    • Martin Holst Swende's avatar
      core, eth, les: implement unclean-shutdown marker (#21893) · 4d48980e
      Martin Holst Swende authored
      
      This PR implements unclean shutdown marker. Every time geth boots, it adds a timestamp to a list of timestamps in the database. This list is capped at 10. At a clean shutdown, the timestamp is removed again. 
      Thus, when geth exits unclean, the marker remains, and at boot up we show the most recent unclean shutdowns to the user, which makes it easier to diagnose root-causes to certain problems. 
      
      Co-authored-by: default avatarNagy Salem <me@muhnagy.com>
      Unverified
      4d48980e
Loading