good morning!!!!

Skip to content
Snippets Groups Projects
  1. Oct 30, 2020
    • Gary Rong's avatar
      les, p2p/simulations/adapters: fix issues found while simulating les (#21761) · b63bffe8
      Gary Rong authored
      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.
      Unverified
      b63bffe8
  2. Oct 29, 2020
    • Gary Rong's avatar
      core: improve snapshot journal recovery (#21594) · b63e3c37
      Gary Rong authored
      
      * 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: default avatarPéter Szilágyi <peterke@gmail.com>
      Unverified
      b63e3c37
  3. Oct 28, 2020
  4. Oct 27, 2020
  5. Oct 26, 2020
  6. Oct 23, 2020
  7. Oct 21, 2020
  8. Oct 20, 2020
  9. Oct 16, 2020
  10. Oct 15, 2020
  11. Oct 14, 2020
  12. Oct 13, 2020
  13. Oct 12, 2020
  14. Oct 09, 2020
  15. Oct 08, 2020
Loading