From c2db006c868254aa2a47bf72e923d49c5abf5299 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 19 Feb 2016 13:58:05 +0100 Subject: [PATCH] addrequest: do not set expiration date by default --- lib/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index a6bebd01..8c8a8d54 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -556,7 +556,7 @@ class Commands: return map(self._format_request, out) @command('w') - def addrequest(self, amount, memo='', expiration=60*60, force=False): + def addrequest(self, amount, memo='', expiration=None, force=False): """Create a payment request.""" addr = self.wallet.get_unused_address(None) if addr is None: @@ -565,7 +565,7 @@ class Commands: else: return False amount = int(COIN*Decimal(amount)) - expiration = int(expiration) + expiration = int(expiration) if expiration else None req = self.wallet.make_payment_request(addr, amount, memo, expiration) self.wallet.add_payment_request(req, self.config) out = self.wallet.get_payment_request(addr, self.config)