1. 19 Apr, 2021 1 commit
  2. 19 Mar, 2021 1 commit
  3. 25 Nov, 2020 1 commit
  4. 19 May, 2020 1 commit
  5. 26 Mar, 2020 1 commit
  6. 17 Jan, 2020 1 commit
  7. 12 Dec, 2019 2 commits
    • Felix Lange's avatar
    • Felix Lange's avatar
      p2p/dnsdisc: add enode.Iterator API (#20437) · 191364c3
      Felix Lange authored
      * p2p/dnsdisc: add support for enode.Iterator
      
      This changes the dnsdisc.Client API to support the enode.Iterator
      interface.
      
      * p2p/dnsdisc: rate-limit DNS requests
      
      * p2p/dnsdisc: preserve linked trees across root updates
      
      This improves the way links are handled when the link root changes.
      Previously, sync would simply remove all links from the current tree and
      garbage-collect all unreachable trees before syncing the new list of
      links.
      
      This behavior isn't great in certain cases: Consider a structure where
      trees A, B, and C reference each other and D links to A. If D's link
      root changed, the sync code would first remove trees A, B and C, only to
      re-sync them later when the link to A was found again.
      
      The fix for this problem is to track the current set of links in each
      clientTree and removing old links only AFTER all links are synced.
      
      * p2p/dnsdisc: deflake iterator test
      
      * cmd/devp2p: adapt dnsClient to new p2p/dnsdisc API
      
      * p2p/dnsdisc: tiny comment fix
      191364c3
  8. 29 Oct, 2019 1 commit
    • Felix Lange's avatar
      cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132) · 2c37142d
      Felix Lange authored
      * p2p/enode: add Iterator and associated utilities
      
      * p2p/discover: add RandomNodes iterator
      
      * p2p: dial using iterator
      
      * cmd/devp2p: add discv4 crawler
      
      * cmd/devp2p: WIP nodeset filter
      
      * cmd/devp2p: fixup lesFilter
      
      * core/forkid: add NewStaticFilter
      
      * cmd/devp2p: make -eth-network filter actually work
      
      * cmd/devp2p: improve crawl timestamp handling
      
      * cmd/devp2p: fix typo
      
      * p2p/enode: fix comment typos
      
      * p2p/discover: fix comment typos
      
      * p2p/discover: rename lookup.next to 'advance'
      
      * p2p: lower discovery mixer timeout
      
      * p2p/enode: implement dynamic FairMix timeouts
      
      * cmd/devp2p: add ropsten support in -eth-network filter
      
      * cmd/devp2p: tweak crawler log message
      2c37142d
  9. 25 Sep, 2019 1 commit
    • Felix Lange's avatar
      p2p/dnsdisc: add implementation of EIP-1459 (#20094) · 0568e817
      Felix Lange authored
      This adds an implementation of node discovery via DNS TXT records to the
      go-ethereum library. The implementation doesn't match EIP-1459 exactly,
      the main difference being that this implementation uses separate merkle
      trees for tree links and ENRs. The EIP will be updated to match p2p/dnsdisc.
      
      To maintain DNS trees, cmd/devp2p provides a frontend for the p2p/dnsdisc
      library. The new 'dns' subcommands can be used to create, sign and deploy DNS
      discovery trees.
      0568e817