Browse Source

verify: create a PaymentRequest instance, to avoid blanking the signature as side effect

283
ThomasV 10 years ago
parent
commit
409c34d1bf
  1. 3
      lib/paymentrequest.py

3
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

Loading…
Cancel
Save