From 267220ad722e49ca17d81be4fb5d03d55f522047 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 3 Jul 2018 14:26:53 -0500 Subject: [PATCH] only attempt announce with online peers --- onionr/communicator2.py | 2 +- onionr/onionr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/communicator2.py b/onionr/communicator2.py index 5d25ba22..eb930b73 100755 --- a/onionr/communicator2.py +++ b/onionr/communicator2.py @@ -313,7 +313,7 @@ class OnionrCommunicatorDaemon: '''Announce to peers our address''' announceCount = 0 announceAmount = 2 - for peer in self._core.listAdders(): + for peer in self.onlinePeers: announceCount += 1 if self.peerAction(peer, 'announce', self._core.hsAdder) == 'Success': logger.info('Successfully introduced node to ' + peer) diff --git a/onionr/onionr.py b/onionr/onionr.py index 44eb518e..abe69b3c 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -623,8 +623,8 @@ class Onionr: 'Onionr Daemon Status' : ((logger.colors.fg.green + 'Online') if self.onionrUtils.isCommunicatorRunning(timeout = 2) else logger.colors.fg.red + 'Offline'), 'Public Key' : self.onionrCore._crypto.pubKey, 'POW Token' : powToken, - 'Human readable public key' : self.onionrCore._utils.getHumanReadableID(), 'Combined' : self.onionrCore._crypto.pubKey + '-' + powToken, + 'Human readable public key' : self.onionrCore._utils.getHumanReadableID(), 'Node Address' : self.get_hostname(), # file and folder size stats