commit f320178db9803db8c7c6cce16ba8c9a7b100f82d
parent eb3442ab47373d6c9022f79f307d4136aa1ba26e
Author: ThomasV <thomasv@gitorious>
Date: Mon, 13 Jul 2015 21:37:41 +0200
no empty amount in bip70
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py
@@ -292,6 +292,8 @@ def make_unsigned_request(req):
addr = req['address']
time = req['timestamp']
amount = req['amount']
+ if amount is None:
+ amount = 0
expires = req['expiration']
memo = req['memo']
script = Transaction.pay_script('address', addr).decode('hex')