From e682de7344a17835b195312239ba3f15955d35c8 Mon Sep 17 00:00:00 2001 From: Mariano Sorgente <3069354+mariano54@users.noreply.github.com> Date: Thu, 11 Aug 2022 03:05:12 +0700 Subject: [PATCH] Early return from olivernyc (#12877) --- chia/wallet/wallet_node.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chia/wallet/wallet_node.py b/chia/wallet/wallet_node.py index 257e4b010f..0c0bee2927 100644 --- a/chia/wallet/wallet_node.py +++ b/chia/wallet/wallet_node.py @@ -1013,6 +1013,12 @@ class WalletNode: if far_behind or len(self.synced_peers) == 0: syncing = True self.wallet_state_manager.set_sync_mode(True) + + if not syncing and not ( + self._secondary_peer_sync_task is None or self._secondary_peer_sync_task.done() + ): + self.log.info("Will not do secondary sync, there is already another sync task running.") + return try: ( valid_weight_proof,