upload to multiple peers
parent
ca122dc1ba
commit
5f1a02e42d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue