pull/46/head
Niels Andriesse 6 years ago
parent 55b5718271
commit 4825ba07d8

@ -1 +1 @@
Subproject commit 8b30c2d91fe7f9743350dd30521b5ca74e78766c
Subproject commit eea56e7a7f25a5a9e282c742cf1c618765ca5ca8

@ -76,7 +76,7 @@ public final class LokiAPI : NSObject {
return lokiMessage.calculatePoW().then { lokiMessageWithPoW in
return getTargetSnodes(for: destination).map { swarm in
return Set(swarm.map { target in
sendLokiMessage(lokiMessageWithPoW, to: target).map { rawResponse -> Any in
sendLokiMessage(lokiMessageWithPoW, to: target).map { rawResponse in
if let json = rawResponse as? JSON, let powDifficulty = json["difficulty"] as? Int {
guard powDifficulty != LokiAPI.powDifficulty else { return rawResponse }
print("[Loki] Setting proof of work difficulty to \(powDifficulty).")

Loading…
Cancel
Save