Procházet zdrojové kódy

Don't reset the clients' bootstrapping flag in the first real epoch

All clients are actually bootstrapping in that epoch
Ian Goldberg před 5 roky
rodič
revize
03603462b1
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      simulator.py

+ 3 - 1
simulator.py

@@ -93,7 +93,9 @@ class Simulator:
         # Throw away all the performance statistics to this point
         for d in self.dirauths: d.perfstats.reset()
         for r in self.relays: r.perfstats.reset()
-        for c in self.clients: c.perfstats.reset()
+        # The clients' stats are already at 0, but they have the
+        # "bootstrapping" flag set, which we want to keep, so we
+        # won't reset them.
 
         # Tick the epoch to bootstrap the clients
         network.thenetwork.nextepoch()