Remove PoW too low error code handling

This commit is contained in:
Niels Andriesse 2021-04-20 14:23:32 +10:00
parent 2feae0dea4
commit 727dccfbb7
1 changed files with 0 additions and 12 deletions

View File

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