From 409c34d1bf11602472f90385327f5a463dc24cd2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 22 Apr 2015 10:25:29 +0200 Subject: [PATCH] verify: create a PaymentRequest instance, to avoid blanking the signature as side effect --- lib/paymentrequest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py index b0ce36ae9..3b2a5c6d5 100644 --- 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