electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 6c215c895a9a9babe9ff27a2b3487cbc94a75e67
parent f5817c7796ba1ca50570f336624bcef1583bdb53
Author: ThomasV <thomasv@electrum.org>
Date:   Wed,  4 Oct 2017 12:34:24 +0200

Merge pull request #2971 from SomberNight/fix_saving_bip70_payreq

fix: saving payment request as bip70 file
Diffstat:
Mgui/qt/main_window.py | 2+-
Mlib/paymentrequest.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -916,7 +916,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): fileName = self.getSaveFileName(_("Select where to save your payment request"), name, "*.bip70") if fileName: with open(fileName, "wb+") as f: - f.write(str(pr)) + f.write(util.to_bytes(pr)) self.show_message(_("Request saved successfully")) self.saved = True diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py @@ -320,7 +320,7 @@ def make_unsigned_request(req): pd.memo = memo pr = pb2.PaymentRequest() pr.serialized_payment_details = pd.SerializeToString() - pr.signature = '' + pr.signature = util.to_bytes('') return pr