Просмотр исходного кода

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

All clients are actually bootstrapping in that epoch
Ian Goldberg 5 лет назад
Родитель
Сommit
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()