|
@@ -204,7 +204,6 @@ class DirAuth(network.Server):
|
|
|
self.generate_consensus(epoch+1)
|
|
|
del DirAuth.uploadeddescs[epoch+1]
|
|
|
DirAuth.consensus.sign(self.sigkey, self.me)
|
|
|
- print(DirAuth.consensus)
|
|
|
|
|
|
def received(self, client, msg):
|
|
|
if isinstance(msg, DirAuthUploadDescMsg):
|
|
@@ -223,9 +222,9 @@ class DirAuth(network.Server):
|
|
|
(DirAuth.uploadeddescs[epoch][descstr][0]+1,
|
|
|
DirAuth.uploadeddescs[epoch][descstr][1])
|
|
|
elif isinstance(msg, DirAuthGetConsensusMsg):
|
|
|
- client.sendmsg(DirAuthConsensusMsg(DirAuth.consensus))
|
|
|
+ client.reply(DirAuthConsensusMsg(DirAuth.consensus))
|
|
|
elif isinstance(msg, DirAuthGetENDIVEMsg):
|
|
|
- client.sendmsg(DirAuthENDIVEMsg(DirAuth.endive))
|
|
|
+ client.reply(DirAuthENDIVEMsg(DirAuth.endive))
|
|
|
else:
|
|
|
raise TypeError('Not a client-originating DirAuthNetMsg', msg)
|
|
|
|