From 5f1a02e42d73227a63a6b7c1f0d592533986e246 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 23 Jul 2018 15:23:32 -0500 Subject: [PATCH] upload to multiple peers --- onionr/communicator2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/communicator2.py b/onionr/communicator2.py index a4c3e023..ba24991b 100755 --- a/onionr/communicator2.py +++ b/onionr/communicator2.py @@ -352,7 +352,7 @@ class OnionrCommunicatorDaemon: if not self._core._utils.validateHash(self.blockToUpload): logger.warn('Requested to upload invalid block') return - for i in max(len(self.onlinePeers), 2): + for i in range(max(len(self.onlinePeers), 2)): peer = self.pickOnlinePeer() if peer in triedPeers: continue