Skip to content
Snippets Groups Projects
  1. Feb 16, 2018
  2. Feb 13, 2018
  3. Feb 12, 2018
  4. Feb 11, 2018
  5. Feb 10, 2018
  6. Feb 08, 2018
  7. Feb 02, 2018
  8. Feb 01, 2018
  9. Jan 31, 2018
    • Nick Mathewson's avatar
      56857291
    • David Goulet's avatar
      ns: Add a before and after consensus has changed notification · fbc455cb
      David Goulet authored
      In 0.3.2.1-alpha, we've added notify_networkstatus_changed() in order to have
      a way to notify other subsystems that the consensus just changed. The old and
      new consensus are passed to it.
      
      Before this patch, this was done _before_ the new consensus was set globally
      (thus NOT accessible by getting the latest consensus). The scheduler
      notification was assuming that it was set and select_scheduler() is looking at
      the latest consensus to get the parameters it might needs. This was very wrong
      because at that point it is still the old consensus set globally.
      
      This commit changes the notify_networkstatus_changed() to be the "before"
      function and adds an "after" notification from which the scheduler subsystem
      is notified.
      
      Fixes #24975
      fbc455cb
Loading