From f6bd1546a763602af4bfd11b78d959833e4be65f Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Mon, 9 Jan 2023 01:43:04 +0200 Subject: [PATCH] Alias disseminatePreEncryptedMsg as disseminatePreparedObject, edit docstring --- src/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api.py b/src/api.py index f72863ce..e3acac29 100644 --- a/src/api.py +++ b/src/api.py @@ -1282,8 +1282,8 @@ class BMRPCDispatcher(object): }) return {'subscriptions': data} - @command('disseminatePreEncryptedMsg') - def HandleDisseminatePreEncryptedMsg( + @command('disseminatePreEncryptedMsg', 'disseminatePreparedObject') + def HandleDisseminatePreparedObject( self, encryptedPayload, nonceTrialsPerByte=networkDefaultProofOfWorkNonceTrialsPerByte, payloadLengthExtraBytes=networkDefaultPayloadLengthExtraBytes @@ -1291,9 +1291,9 @@ class BMRPCDispatcher(object): """ Handle a request to disseminate an encrypted message. - The device issuing this command to PyBitmessage supplies a msg object + The device issuing this command to PyBitmessage supplies an object that has already been encrypted but which may still need the PoW - to be done. PyBitmessage accepts this msg object and sends it out + to be done. PyBitmessage accepts this object and sends it out to the rest of the Bitmessage network as if it had generated the message itself.