Explorar el Código

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

All clients are actually bootstrapping in that epoch
Ian Goldberg hace 5 años
padre
commit
03603462b1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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()