From 727dccfbb75166cd95434d3d32ff254521ff67d0 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 20 Apr 2021 14:23:32 +1000 Subject: [PATCH] Remove PoW too low error code handling --- SessionSnodeKit/SnodeAPI.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/SessionSnodeKit/SnodeAPI.swift b/SessionSnodeKit/SnodeAPI.swift index a55a5907f..b345f8ce9 100644 --- a/SessionSnodeKit/SnodeAPI.swift +++ b/SessionSnodeKit/SnodeAPI.swift @@ -429,18 +429,6 @@ public final class SnodeAPI : NSObject { } else { SNLog("Got a 421 without an associated public key.") } - case 432: - // The proof of work difficulty is too low - if let powDifficulty = json?["difficulty"] as? UInt { - if powDifficulty < 100 { - SNLog("Setting proof of work difficulty to \(powDifficulty).") - SnodeAPI.powDifficulty = UInt(powDifficulty) - } else { - handleBadSnode() - } - } else { - SNLog("Failed to update proof of work difficulty.") - } default: handleBadSnode() SNLog("Unhandled response code: \(statusCode).")