From cead2e3942f647e332992a58e04289057a975742 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Fri, 24 May 2019 09:44:22 +1000 Subject: [PATCH] More PoW fixes. --- SignalServiceKit/src/Loki/API/LokiAPI+Message.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SignalServiceKit/src/Loki/API/LokiAPI+Message.swift b/SignalServiceKit/src/Loki/API/LokiAPI+Message.swift index be35dd438..78b57f1cf 100644 --- a/SignalServiceKit/src/Loki/API/LokiAPI+Message.swift +++ b/SignalServiceKit/src/Loki/API/LokiAPI+Message.swift @@ -63,8 +63,7 @@ public extension LokiAPI { return Promise { seal in DispatchQueue.global(qos: .default).async { let now = NSDate.ows_millisecondTimeStamp() - let ttlInSeconds = ttl / 1000 - if let nonce = ProofOfWork.calculate(data: self.data as! String, pubKey: self.destination, timestamp: now, ttl: ttlInSeconds) { + if let nonce = ProofOfWork.calculate(data: self.data as! String, pubKey: self.destination, timestamp: now, ttl: self.ttl) { let result = Message(destination: self.destination, data: self.data, ttl: self.ttl, timestamp: now, nonce: nonce) seal.fulfill(result) } else {