electrum

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

commit 409c34d1bf11602472f90385327f5a463dc24cd2
parent fd651709b82a1c6f9d5c84e7557a91ab9fb6cd1a
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:
Mlib/paymentrequest.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py @@ -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