From 360539b3200e4216a9f7bc26bc1bb80184a93294 Mon Sep 17 00:00:00 2001 From: navjot Date: Mon, 16 Nov 2020 19:49:10 +0530 Subject: [PATCH] Fixed CQ of class_objectProcessor, bitmessagecurses and bitmessageqt module --- src/bitmessagecurses/__init__.py | 3 +-- src/bitmessageqt/__init__.py | 1 + src/class_objectProcessor.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bitmessagecurses/__init__.py b/src/bitmessagecurses/__init__.py index 3893cc7e..eefe32d3 100644 --- a/src/bitmessagecurses/__init__.py +++ b/src/bitmessagecurses/__init__.py @@ -29,7 +29,6 @@ import state from addresses import addBMIfNotPresent, decodeAddress from bmconfigparser import BMConfigParser -from helper_ackPayload import genAckPayload from helper_sql import sqlExecute, sqlQuery from inventory import Inventory @@ -921,7 +920,7 @@ def sendMessage(sender="", recv="", broadcast=None, subject="", body="", reply=F for addr in recvlist: if addr != "": # pylint: disable=redefined-outer-name - status, version, stream, ripe = decodeAddress(addr) + status, version, stream, ripe = decodeAddress(addr) # pylint: disable=unused-variable if status != "success": set_background_title(d, "Recipient address error") err = "Could not decode" + addr + " : " + status + "\n\n" diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 913b24a5..81f73922 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2071,6 +2071,7 @@ class MyForm(settingsmixin.SMainWindow): ).arg(email) ) return + # pylint: disable=unused-variable status, addressVersionNumber, streamNumber, ripe = decodeAddress( toAddress) if status != 'success': diff --git a/src/class_objectProcessor.py b/src/class_objectProcessor.py index 35c2c29e..559644a2 100644 --- a/src/class_objectProcessor.py +++ b/src/class_objectProcessor.py @@ -745,6 +745,8 @@ class objectProcessor(threading.Thread): # We don't actually need the ackdata for acknowledgement # since this is a broadcast message but we can use it to # update the user interface when the POW is done generating. + streamNumber = decodeAddress(fromAddress)[2] + ackdata = genAckPayload(streamNumber, 0) toAddress = '[Broadcast subscribers]' helper_sent.insert(