upload to multiple peers

This commit is contained in:
Kevin Froman 2018-07-23 15:23:32 -05:00
parent ca122dc1ba
commit 5f1a02e42d
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -352,7 +352,7 @@ class OnionrCommunicatorDaemon:
if not self._core._utils.validateHash(self.blockToUpload): if not self._core._utils.validateHash(self.blockToUpload):
logger.warn('Requested to upload invalid block') logger.warn('Requested to upload invalid block')
return return
for i in max(len(self.onlinePeers), 2): for i in range(max(len(self.onlinePeers), 2)):
peer = self.pickOnlinePeer() peer = self.pickOnlinePeer()
if peer in triedPeers: if peer in triedPeers:
continue continue