From a3f0aab28548088afc707ad65eab3cac34cb9409 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Sun, 3 Feb 2013 15:50:19 -0500 Subject: [PATCH] simple change to maintain backwards compatability --- bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index 415e76bd..eb4e3f23 100644 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -1445,7 +1445,7 @@ class receiveDataThread(QThread): headerData = headerData + pack('>L',len(payload)) #payload length. Note that we add an extra 8 for the nonce. headerData = headerData + hashlib.sha512(payload).digest()[:4] self.sock.send(headerData + payload) - elif objectType == 'getpubkey': + elif objectType == 'getpubkey' or objectType == 'pubkeyrequest': print 'sending getpubkey' headerData = '\xe9\xbe\xb4\xd9' #magic bits, slighly different from Bitcoin's magic bits. headerData = headerData + 'getpubkey\x00\x00\x00' #version command -- 2.45.1