From 2a93b04332050a47e4c205bee7e09a3b4746f09d Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 19 Mar 2024 04:12:35 +0200 Subject: [PATCH] Fix api.HandleDisseminatePreEncryptedMsg() for python3 --- src/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.py b/src/api.py index 69e7523a..c27a24e7 100644 --- a/src/api.py +++ b/src/api.py @@ -1336,13 +1336,13 @@ class BMRPCDispatcher(object): inventoryHash = calculateInventoryHash(encryptedPayload) Inventory()[inventoryHash] = ( objectType, toStreamNumber, encryptedPayload, - expiresTime, '' + expiresTime, b'' ) logger.info( 'Broadcasting inv for msg(API disseminatePreEncryptedMsg' ' command): %s', hexlify(inventoryHash)) queues.invQueue.put((toStreamNumber, inventoryHash)) - return hexlify(inventoryHash) + return hexlify(inventoryHash).decode() @command('trashSentMessageByAckData') def HandleTrashSentMessageByAckDAta(self, ackdata):