1. 18 Jan, 2023 2 commits
  2. 17 Jan, 2023 2 commits
  3. 16 Jan, 2023 7 commits
  4. 15 Jan, 2023 1 commit
  5. 13 Jan, 2023 3 commits
  6. 12 Jan, 2023 4 commits
  7. 11 Jan, 2023 1 commit
  8. 10 Jan, 2023 7 commits
  9. 09 Jan, 2023 3 commits
  10. 06 Jan, 2023 4 commits
  11. 03 Jan, 2023 6 commits
    • rjl493456442's avatar
      core, eth, trie, light: clean up trie interface (#26388) · 6c149fd4
      rjl493456442 authored
      * all: cleanup trie interface
      
      * eth, trie: address comments
      6c149fd4
    • Martin Holst Swende's avatar
      41fe9d64
    • Felix Lange's avatar
      p2p/discover: add more packet information in logs (#26307) · a251bca6
      Felix Lange authored
      * p2p/discover: add more packet information in logs
      
      This adds more fields to discv5 packet logs. These can be useful when
      debugging multi-packet interactions.
      
      The FINDNODE message also gets an additional field, OpID for debugging
      purposes. This field is not encoded onto the wire.
      
      I'm also removing topic system related message types in this change.
      These will come back in the future, where support for them will be
      guarded by a config flag.
      
      * p2p/discover/v5wire: rename 'Total' to 'RespCount'
      
      The new name captures the meaning of this field better.
      a251bca6
    • Felix Lange's avatar
      common/mclock: add Alarm (#26333) · 9e6a1c38
      Felix Lange authored
      Alarm is a timer utility that simplifies code where a timer needs to be rescheduled over
      and over. Doing this can be tricky with time.Timer or time.AfterFunc because the channel
      requires draining in some cases.
      
      Alarm is optimized for use cases where items are tracked in a heap according to their expiry
      time, and a goroutine with a for/select loop wants to be woken up whenever the next item expires.
      In this application, the timer needs to be rescheduled when an item is added or removed
      from the heap. Using a timer naively, these updates will always require synchronization
      with the global runtime timer datastructure to update the timer using Reset. Alarm avoids
      this by tracking the next expiry time and only modifies the timer if it would need to fire earlier
      than already scheduled.
      
      As an example use, I have converted p2p.dialScheduler to use Alarm instead of AfterFunc.
      9e6a1c38
    • Péter Szilágyi's avatar
    • Péter Szilágyi's avatar