From 6738eaf22296689e636338a1743accc789811bdd Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 28 Jun 2020 04:16:55 -0500 Subject: [PATCH] don't hide uploaded blocks if we have no peers --- src/communicator/daemoneventhooks/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/communicator/daemoneventhooks/__init__.py b/src/communicator/daemoneventhooks/__init__.py index f7bec957..f018c276 100644 --- a/src/communicator/daemoneventhooks/__init__.py +++ b/src/communicator/daemoneventhooks/__init__.py @@ -57,6 +57,8 @@ def daemon_event_handlers(shared_state: 'TooMany'): def upload_event(block: 'BlockHash' = ''): if not block: raise ValueError + if not comm_inst.onlinePeers: + return public_api.hideBlocks.append(block) try: mixmate.block_mixer(comm_inst.blocksToUpload, block)