tverify: create a PaymentRequest instance, to avoid blanking the signature as side effect - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 409c34d1bf11602472f90385327f5a463dc24cd2 DIR parent fd651709b82a1c6f9d5c84e7557a91ab9fb6cd1a HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 22 Apr 2015 10:25:29 +0200 verify: create a PaymentRequest instance, to avoid blanking the signature as side effect Diffstat: M lib/paymentrequest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py t@@ -112,7 +112,8 @@ class PaymentRequest: if not ca_list: self.error = "Trusted certificate authorities list not found" return False - paymntreq = self.data + paymntreq = pb2.PaymentRequest() + paymntreq.ParseFromString(self.raw) if not paymntreq.signature: self.error = "No signature" return