|
@@ -251,13 +251,14 @@ class DirAuth(network.Server):
|
|
|
self.tot = tot
|
|
|
self.name = "Dirauth %d of %d" % (me+1, tot)
|
|
|
self.perfstats = PerfStats(EntType.DIRAUTH)
|
|
|
- self.perfstats.name = self.name
|
|
|
self.perfstats.is_bootstrapping = True
|
|
|
|
|
|
# Create the dirauth signature keypair
|
|
|
self.sigkey = nacl.signing.SigningKey.generate()
|
|
|
self.perfstats.keygens += 1
|
|
|
|
|
|
+ self.netaddr = network.thenetwork.bind(self)
|
|
|
+ self.perfstats.name = "DirAuth at %s" % self.netaddr
|
|
|
network.thenetwork.setdirauthkey(me, self.sigkey.verify_key)
|
|
|
network.thenetwork.wantepochticks(self, True, True)
|
|
|
|
|
@@ -345,7 +346,7 @@ if __name__ == '__main__':
|
|
|
dirauthaddrs = []
|
|
|
for i in range(numdirauths):
|
|
|
dirauth = DirAuth(i, numdirauths)
|
|
|
- dirauthaddrs.append(network.thenetwork.bind(dirauth))
|
|
|
+ dirauthaddrs.append(dirauth.netaddr)
|
|
|
|
|
|
for a in dirauthaddrs:
|
|
|
print(a,end=' ')
|