1. 17 May, 2022 1 commit
    • juga's avatar
      chg: When an exit fail to exit, check CC · dc06bbdc
      juga authored
      before selecting other exits as helpers.
      In #40136 we forgot to consider the corner case in #40041, discovered
      thanks to analysis#36.
      This was causing that sometimes a CC circuit was built when
      bwscanner_cc wasn't equal or greater than 1 or the other way around.
      
      We didn't realize about this cause this part of the code is very
      confusing. To don't make it even more confusing, i've changed the
      internal API:
      - `select_helper_candidates`: split funtion into one to select the
        helper candidates, knowing whether to use the relay as exit or not
        and other function `use_relay_as_entry` to decide whether to use the
        relay as entry or not checking CC params.
        Also pass a new arg `relay_as_entry`.
      - `create_path_relay`: rewmove not used `cb` arg, add `candidates` arg
        to stop having to select them again later on. Move the no
        `candidates` condition here instead of checking it in
        `pick_ideal_second_hop`.
      - `_pick_ideal_second_hope: remove unneded `dest` and `cont arguments,
        rename `is_exit` to `helper_is_exit`. Use the candidates instead of
        selecting them again.
      - `measure_relay`: in the case an exit fails to exit, select the
        candidates knowing that they have to be exits and checking CC.
      - `only_relays_with_bandwidth`: remove unneded arg `controller` so
        that there is no need to pass it through several functions.
      
      Closes #40138
      dc06bbdc
  2. 16 May, 2022 1 commit
  3. 12 May, 2022 2 commits
  4. 10 May, 2022 1 commit
  5. 02 May, 2022 1 commit
  6. 26 Apr, 2022 2 commits
  7. 19 Apr, 2022 1 commit
  8. 30 Mar, 2022 1 commit
  9. 25 Feb, 2022 2 commits
  10. 09 Feb, 2022 8 commits
  11. 04 Feb, 2022 1 commit
  12. 03 Feb, 2022 1 commit
  13. 28 Jan, 2022 2 commits
  14. 25 Jan, 2022 1 commit
  15. 13 Jan, 2022 3 commits
  16. 12 Jan, 2022 1 commit
    • juga's avatar
      fix: v3bwfile: Clarify percent warning · 54f5b9dc
      juga authored
      about the difference between the sum of the last consensus weight and
      the sum of the reported weight in the just generated Bandwidth File.
      Otherwise, when looking at the warnings only, it's not explained what
      the percentage is about.
      
      Closes #40115
      54f5b9dc
  17. 11 Jan, 2022 1 commit
  18. 10 Jan, 2022 2 commits
    • Georg Koppen's avatar
      Merge branch 'm13' · 9df7ce44
      Georg Koppen authored
      9df7ce44
    • juga's avatar
      chg: config: Stop printing which config file is used · 70103358
      juga authored
      sbws doesn't use default logging configuration until it tries to read
      configuration files. However it prints to stdout which configuration
      file is being used before that.
      If an sbws' operator wish to only receive emails on warnings, they'll
      still receive emails because of the print line. Therefore stop printing
      before configuring logging.
      
      Closes #40110.
      70103358
  19. 16 Dec, 2021 2 commits
  20. 15 Dec, 2021 6 commits