good morning!!!!

Skip to content
Snippets Groups Projects
  1. Apr 27, 2021
  2. 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>
      2d89fe08
  3. 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
      dc109cce
    • 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.
      7a3c8900
  4. Feb 20, 2021
  5. Feb 19, 2021
  6. Dec 15, 2020
  7. Dec 14, 2020
  8. Dec 10, 2020
  9. Oct 21, 2020
    • Zsolt Felföldi's avatar
      les: remove clientPeerSet and serverSet (#21566) · 85d81b2c
      Zsolt Felföldi authored
      * 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
      85d81b2c
  10. Sep 14, 2020
    • Zsolt Felföldi's avatar
      les, les/lespay/server: refactor client pool (#21236) · 4996fce2
      Zsolt Felföldi authored
      
      * 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: default avatarrjl493456442 <garyrong0905@gmail.com>
      4996fce2
  11. Aug 07, 2020
  12. Jul 28, 2020
    • Gary Rong's avatar
      les: implement new les fetcher (#20692) · 28c5a8a5
      Gary Rong authored
      * cmd, consensus, eth, les: implement light fetcher
      
      * les: address comment
      
      * les: address comment
      
      * les: address comments
      
      * les: check td after delivery
      
      * les: add linearExpiredValue for error counter
      
      * les: fix import
      
      * les: fix dead lock
      
      * les: order announces by td
      
      * les: encapsulate invalid counter
      
      * les: address comment
      
      * les: add more checks during the delivery
      
      * les: fix log
      
      * eth, les: fix lint
      
      * eth/fetcher: address comment
      28c5a8a5
  13. May 25, 2020
  14. May 22, 2020
    • Zsolt Felföldi's avatar
      les, les/lespay: implement new server pool (#20758) · b4a26811
      Zsolt Felföldi authored
      This PR reimplements the light client server pool. It is also a first step
      to move certain logic into a new lespay package. This package will contain
      the implementation of the lespay token sale functions, the token buying and
      selling logic and other components related to peer selection/prioritization
      and service quality evaluation. Over the long term this package will be
      reusable for incentivizing future protocols.
      
      Since the LES peer logic is now based on enode.Iterator, it can now use
      DNS-based fallback discovery to find servers.
      
      This document describes the function of the new components:
      https://gist.github.com/zsfelfoldi/3c7ace895234b7b345ab4f71dab102d4
      b4a26811
  15. May 12, 2020
  16. Apr 09, 2020
  17. Mar 31, 2020
    • Gary Rong's avatar
      les: create utilities as common package (#20509) · f78ffc05
      Gary Rong authored
      * les: move execqueue into utilities package
      
      execqueue is a util for executing queued functions
      in a serial order which is used by both les server
      and les client. Move it to common package.
      
      * les: move randselect to utilities package
      
      weighted_random_selector is a helpful tool for randomly select
      items maintained in a set but based on the item weight.
      
      It's used anywhere is LES package, mainly by les client but will
      be used in les server with very high chance. So move it into a
      common package as the second step for les separation.
      
      * les: rename to utils
      f78ffc05
  18. Mar 27, 2020
  19. Mar 12, 2020
  20. Feb 26, 2020
  21. Jan 07, 2020
    • Gary Rong's avatar
      les/checkpointoracle: move oracle into its own package (#20508) · c6285e64
      Gary Rong authored
      * les: move the checkpoint oracle into its own package
      
      It's first step of refactor LES package. LES package
      basically can be divided into LES client and LES server.
      However both sides will use checkpoint package for
      status retrieval and verification. So this PR moves
      checkpoint oracle into a separate package
      
      * les: address comments
      c6285e64
  22. Dec 25, 2019
  23. Aug 27, 2019
  24. Aug 21, 2019
  25. Aug 03, 2019
  26. Jul 09, 2019
  27. Jun 28, 2019
    • Gary Rong's avatar
      all: on-chain oracle checkpoint syncing (#19543) · f7cdea2b
      Gary Rong authored
      * all: implement simple checkpoint syncing
      
      cmd, les, node: remove callback mechanism
      
      cmd, node: remove callback definition
      
      les: simplify the registrar
      
      les: expose checkpoint rpc services in the light client
      
      les, light: don't store untrusted receipt
      
      cmd, contracts, les: discard stale checkpoint
      
      cmd, contracts/registrar: loose restriction of registeration
      
      cmd, contracts: add replay-protection
      
      all: off-chain multi-signature contract
      
      params: deploy checkpoint contract for rinkeby
      
      cmd/registrar: add raw signing mode for registrar
      
      cmd/registrar, contracts/registrar, les: fixed messages
      
      * cmd/registrar, contracts/registrar: fix lints
      
      * accounts/abi/bind, les: address comments
      
      * cmd, contracts, les, light, params: minor checkpoint sync cleanups
      
      * cmd, eth, les, light: move checkpoint config to config file
      
      * cmd, eth, les, params: address comments
      
      * eth, les, params: address comments
      
      * cmd: polish up the checkpoint admin CLI
      
      * cmd, contracts, params: deploy new version contract
      
      * cmd/checkpoint-admin: add another flag for clef mode signing
      
      * cmd, contracts, les: rename and regen checkpoint oracle with abigen
      f7cdea2b
  28. Jun 12, 2019
  29. Jun 11, 2019
  30. May 30, 2019
  31. May 13, 2019
  32. Apr 16, 2019
  33. Apr 08, 2019
  34. Mar 20, 2019
  35. Feb 26, 2019
    • Zsolt Felföldi's avatar
      les, les/flowcontrol: improved request serving and flow control (#18230) · c2003ed6
      Zsolt Felföldi authored
      This change
      
      - implements concurrent LES request serving even for a single peer.
      - replaces the request cost estimation method with a cost table based on
        benchmarks which gives much more consistent results. Until now the
        allowed number of light peers was just a guess which probably contributed
        a lot to the fluctuating quality of available service. Everything related
        to request cost is implemented in a single object, the 'cost tracker'. It
        uses a fixed cost table with a global 'correction factor'. Benchmark code
        is included and can be run at any time to adapt costs to low-level
        implementation changes.
      - reimplements flowcontrol.ClientManager in a cleaner and more efficient
        way, with added capabilities: There is now control over bandwidth, which
        allows using the flow control parameters for client prioritization.
        Target utilization over 100 percent is now supported to model concurrent
        request processing. Total serving bandwidth is reduced during block
        processing to prevent database contention.
      - implements an RPC API for the LES servers allowing server operators to
        assign priority bandwidth to certain clients and change prioritized
        status even while the client is connected. The new API is meant for
        cases where server operators charge for LES using an off-protocol mechanism.
      - adds a unit test for the new client manager.
      - adds an end-to-end test using the network simulator that tests bandwidth
        control functions through the new API.
      c2003ed6
  36. Jan 24, 2019
  37. Oct 01, 2018
  38. Sep 24, 2018
    • Felix Lange's avatar
      all: new p2p node representation (#17643) · 30cd5c18
      Felix Lange authored
      Package p2p/enode provides a generalized representation of p2p nodes
      which can contain arbitrary information in key/value pairs. It is also
      the new home for the node database. The "v4" identity scheme is also
      moved here from p2p/enr to remove the dependency on Ethereum crypto from
      that package.
      
      Record signature handling is changed significantly. The identity scheme
      registry is removed and acceptable schemes must be passed to any method
      that needs identity. This means records must now be validated explicitly
      after decoding.
      
      The enode API is designed to make signature handling easy and safe: most
      APIs around the codebase work with enode.Node, which is a wrapper around
      a valid record. Going from enr.Record to enode.Node requires a valid
      signature.
      
      * p2p/discover: port to p2p/enode
      
      This ports the discovery code to the new node representation in
      p2p/enode. The wire protocol is unchanged, this can be considered a
      refactoring change. The Kademlia table can now deal with nodes using an
      arbitrary identity scheme. This requires a few incompatible API changes:
      
        - Table.Lookup is not available anymore. It used to take a public key
          as argument because v4 protocol requires one. Its replacement is
          LookupRandom.
        - Table.Resolve takes *enode.Node instead of NodeID. This is also for
          v4 protocol compatibility because nodes cannot be looked up by ID
          alone.
        - Types Node and NodeID are gone. Further commits in the series will be
          fixes all over the the codebase to deal with those removals.
      
      * p2p: port to p2p/enode and discovery changes
      
      This adapts package p2p to the changes in p2p/discover. All uses of
      discover.Node and discover.NodeID are replaced by their equivalents from
      p2p/enode.
      
      New API is added to retrieve the enode.Node instance of a peer. The
      behavior of Server.Self with discovery disabled is improved. It now
      tries much harder to report a working IP address, falling back to
      127.0.0.1 if no suitable address can be determined through other means.
      These changes were needed for tests of other packages later in the
      series.
      
      * p2p/simulations, p2p/testing: port to p2p/enode
      
      No surprises here, mostly replacements of discover.Node, discover.NodeID
      with their new equivalents. The 'interesting' API changes are:
      
       - testing.ProtocolSession tracks complete nodes, not just their IDs.
       - adapters.NodeConfig has a new method to create a complete node.
      
      These changes were needed to make swarm tests work.
      
      Note that the NodeID change makes the code incompatible with old
      simulation snapshots.
      
      * whisper/whisperv5, whisper/whisperv6: port to p2p/enode
      
      This port was easy because whisper uses []byte for node IDs and
      URL strings in the API.
      
      * eth: port to p2p/enode
      
      Again, easy to port because eth uses strings for node IDs and doesn't
      care about node information in any way.
      
      * les: port to p2p/enode
      
      Apart from replacing discover.NodeID with enode.ID, most changes are in
      the server pool code. It now deals with complete nodes instead
      of (Pubkey, IP, Port) triples. The database format is unchanged for now,
      but we should probably change it to use the node database later.
      
      * node: port to p2p/enode
      
      This change simply replaces discover.Node and discover.NodeID with their
      new equivalents.
      
      * swarm/network: port to p2p/enode
      
      Swarm has its own node address representation, BzzAddr, containing both
      an overlay address (the hash of a secp256k1 public key) and an underlay
      address (enode:// URL).
      
      There are no changes to the BzzAddr format in this commit, but certain
      operations such as creating a BzzAddr from a node ID are now impossible
      because node IDs aren't public keys anymore.
      
      Most swarm-related changes in the series remove uses of
      NewAddrFromNodeID, replacing it with NewAddr which takes a complete node
      as argument. ToOverlayAddr is removed because we can just use the node
      ID directly.
      30cd5c18
Loading