# 4a: may need to run recovery algorithm
# 5: when enough responses are back, we're done
- self.log("starting publish, data is %r" % (newdata,))
+ self.log("got enough peers, datalen is %s" % len(newdata))
self._writekey = self._node.get_writekey()
assert self._writekey, "need write capability to publish"
self._num_peers = num_peers
self._peerids = [tagged_hash("peerid", "%d" % i)[:20]
for i in range(self._num_peers)]
- def log(self, msg):
- log.msg(msg)
+ self.introducer_client = FakeIntroducerClient()
+ def log(self, msg, **kw):
+ return log.msg(msg, **kw)
def get_renewal_secret(self):
return "I hereby permit you to renew my files"