[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #4363 [Core Tor/Tor]: Dirauths should save a copy of a consensus that didn't get enough signatures



#4363: Dirauths should save a copy of a consensus that didn't get enough
signatures
------------------------------------------------+--------------------------
 Reporter:  Sebastian                           |          Owner:  (none)
     Type:  enhancement                         |         Status:  new
 Priority:  Medium                              |      Milestone:  Tor:
                                                |  unspecified
Component:  Core Tor/Tor                        |        Version:
 Severity:  Normal                              |     Resolution:
 Keywords:  tor-dirauth auditability save dump  |  Actual Points:
Parent ID:                                      |         Points:  1
 Reviewer:                                      |        Sponsor:
------------------------------------------------+--------------------------

Comment (by arma):

 Here's the hack I'm using on moria1 today:
 {{{
 diff --git a/src/or/dirauth/dirvote.c b/src/or/dirauth/dirvote.c
 index 1643990..b832b51 100644
 --- a/src/or/dirauth/dirvote.c
 +++ b/src/or/dirauth/dirvote.c
 @@ -3351,6 +3351,16 @@ dirvote_compute_consensuses(void)
        pending[flav].body = consensus_body;
        pending[flav].consensus = consensus;
        n_generated++;
 +
 +      /* write it out to disk too, for dir auth debugging purposes */
 +      {
 +      char *filename;
 +      tor_asprintf(&filename, "my-consensus-%s",
 +                   networkstatus_get_flavor_name(flav));
 +      write_str_to_file(get_datadir_fname(filename), consensus_body, 0);
 +      tor_free(filename);
 +      }
 +
        consensus_body = NULL;
        consensus = NULL;
      }
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4363#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs