Преглед изворни кода

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

All clients are actually bootstrapping in that epoch
Ian Goldberg пре 5 година
родитељ
комит
03603462b1
1 измењених фајлова са 3 додато и 1 уклоњено
  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()