1. 15 9月, 2020 4 次提交
    • K
      COYPING: restore the full text text of GPL (#21568) · 4764b2f0
      Kirill Elagin 提交于
      When the license was added to the repository, its text was changed (some
      sections at the end removed) and, worse, the authors of go-ethereum
      tried to claim copyright on the license text.
      
      The correct way to apply GPL to a project is to copy it verbatim.
      This change reverts the text of the GPL to the original.
      4764b2f0
    • M
      b65c3841
    • F
      les, les/lespay/server: refactor client pool (#21236) · 4996fce2
      Felföldi Zsolt 提交于
      * 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: Nrjl493456442 <garyrong0905@gmail.com>
      4996fce2
    • F
      rlp: add SplitUint64 (#21563) · f7112cc1
      Felix Lange 提交于
      This can be useful when working with raw RLP data.
      f7112cc1
  2. 14 9月, 2020 3 次提交
    • J
      71c37d82
    • F
      p2p/nodestate: ensure correct callback order (#21436) · 4eb92969
      Felföldi Zsolt 提交于
      This PR adds an extra guarantee to NodeStateMachine: it ensures that all
      immediate effects of a certain change are processed before any subsequent
      effects of any of the immediate effects on the same node. In the original
      version, if a cascaded change caused a subscription callback to be called
      multiple times for the same node then these calls might have happened in a
      wrong chronological order.
      
      For example:
      
      - a subscription to flag0 changes flag1 and flag2
      - a subscription to flag1 changes flag3
      - a subscription to flag1, flag2 and flag3 was called in the following order:
      
         [flag1] -> [flag1, flag3]
         [] -> [flag1]
         [flag1, flag3] -> [flag1, flag2, flag3]
      
      This happened because the tree of changes was traversed in a "depth-first
      order". Now it is traversed in a "breadth-first order"; each node has a
      FIFO queue for pending callbacks and each triggered subscription callback
      is added to the end of the list. The already existing guarantees are
      retained; no SetState or SetField returns until the callback queue of the
      node is empty again. Just like before, it is the responsibility of the
      state machine design to ensure that infinite state loops are not possible.
      Multiple changes affecting the same node can still happen simultaneously;
      in this case the changes can be interleaved in the FIFO of the node but the
      correct order is still guaranteed.
      
      A new unit test is also added to verify callback order in the above scenario.
      4eb92969
    • S
  3. 12 9月, 2020 2 次提交
  4. 11 9月, 2020 1 次提交
  5. 10 9月, 2020 4 次提交
  6. 09 9月, 2020 9 次提交
  7. 08 9月, 2020 3 次提交
  8. 07 9月, 2020 2 次提交
  9. 02 9月, 2020 3 次提交
  10. 01 9月, 2020 4 次提交
  11. 28 8月, 2020 1 次提交
  12. 27 8月, 2020 2 次提交
  13. 26 8月, 2020 2 次提交