Remove PoW too low error code handling

pull/394/head
Niels Andriesse 3 years ago
parent 2feae0dea4
commit 727dccfbb7

@ -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).")

Loading…
Cancel
Save