1. 24 Mar, 2017 1 commit
  2. 06 Mar, 2017 1 commit
    • Jeromy's avatar
      Fixes for dht findpeer queries · 00b46e0c
      Jeromy authored
      First, we use Alpha instead of K as the number of peers we grab from the
      routing table (as per the kademlia paper).
      
      Second, we don't use a size limited set for the 'GetClosestPeers' query.
      We're going to process more than K peers before we find the K closest
      peers.
      
      Third, Change GetClosestPeers to actually return the K Closest peers,
      not a hodge podge of peers that it found on the way to finding the
      closest peers.
      00b46e0c
  3. 05 Oct, 2016 1 commit
  4. 30 Sep, 2016 2 commits
  5. 02 Sep, 2016 1 commit
  6. 21 Aug, 2016 1 commit
  7. 04 Aug, 2016 1 commit
  8. 05 Jul, 2016 1 commit
  9. 04 Jul, 2016 1 commit
  10. 24 Jun, 2016 1 commit
  11. 15 Jun, 2016 2 commits
  12. 12 Jun, 2016 1 commit
  13. 11 Jun, 2016 1 commit
  14. 07 Jun, 2016 1 commit
  15. 01 Jun, 2016 1 commit
  16. 31 May, 2016 1 commit
  17. 17 May, 2016 1 commit
  18. 16 May, 2016 1 commit
  19. 13 May, 2016 1 commit
  20. 10 May, 2016 1 commit
  21. 29 Apr, 2016 1 commit
  22. 27 Apr, 2016 1 commit
  23. 17 Apr, 2016 2 commits
  24. 11 Apr, 2016 1 commit
  25. 07 Apr, 2016 1 commit
  26. 30 Mar, 2016 1 commit
  27. 09 Mar, 2016 1 commit
  28. 13 Feb, 2016 1 commit
  29. 31 Jan, 2016 2 commits
  30. 30 Jan, 2016 2 commits
  31. 12 Jan, 2016 2 commits
  32. 01 Oct, 2015 1 commit
  33. 29 Sep, 2015 2 commits
    • Jeromy's avatar
      Fix dht queries · badc7388
      Jeromy authored
      Queries previously would sometimes only query three (alpha value) peers
      before halting the operation. This PR changes the number of peers
      grabbed from the routing table to start a query to K.
      
      Dht nodes would also not respond with enough peers, as per the kademlia
      paper, this has been changed to from 4 to 'K'.
      
      The query mechanism itself also was flawed in that it would pull all the
      peers it had yet to query out of the queue and 'start' the query for
      them. The concurrency rate limiting was done inside the 'queryPeer'
      method after the goroutine was spawned. This did not allow for peers
      receiver from query replies to be properly queried in order of distance.
      
      License: MIT
      Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
      badc7388
    • Jeromy's avatar
      ipns record selection via sequence numbers · 8d431810
      Jeromy authored
      This commit adds a sequence number to the IpnsEntry protobuf
      that is used to determine which among a set of entries for the same key
      is the 'most correct'.
      
      GetValues has been added to the routing interface to retrieve a set of
      records from the dht, for the caller to select from.
      
      GetValue (singular) will call GetValues, select the 'best' record, and
      then update that record to peers we received outdated records from.
      This will help keep the dht consistent.
      
      License: MIT
      Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
      8d431810