1. 05 Sep, 2017 21 commits
  2. 04 Sep, 2017 14 commits
  3. 31 Aug, 2017 1 commit
  4. 30 Aug, 2017 4 commits
    • Isis Lovecruft's avatar
    • Isis Lovecruft's avatar
      docs: Clarify some portions of the Rust coding standards. · f9dc514e
      Isis Lovecruft authored
       * THANKS TO Henry de Valence for review.
      f9dc514e
    • George Kadianakis's avatar
      prop224: Clear list of prev hsdirs before we upload all descs. · b9f849bd
      George Kadianakis authored
      This fixes a serious bug in our hsdir set change logic:
      
      We used to add nodes in the list of previous hsdirs everytime we
      uploaded to a new hsdir and we only cleared the list when we built a new
      descriptor. This means that our prev_hsdirs list could end up with 7
      hsdirs, if for some reason we ended up uploading our desc to 7 hsdirs
      before rebuilding our descriptor (e.g. this can happen if the set of
      hsdirs changed).
      
      After our previous hdsir set had 7 nodes, then our old algorithm would
      always think that the set has changed since it was comparing a smartlist
      with 7 elements against a smartlist with 6 elements.
      
      This commit fixes this bug, by clearning the prev_hsdirs list before we
      upload to all hsdirs. This makes sure that our prev_hsdirs list always
      contains the latest hsdirs!
      b9f849bd
    • George Kadianakis's avatar
      prop224: Simplify HSDir set change algo. · 1dc21b87
      George Kadianakis authored
      Our logic for detecting hsdir set changes was needlessly compicated: we
      had to sort smartlists and compare them.
      
      Instead, we can simplify things by employing the following logic:
      "We should reupload our descriptor if the latest HSDir set contains
      nodes that were not previously there"
      1dc21b87