URI: 
       taddrequest: do not set expiration date by default - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c2db006c868254aa2a47bf72e923d49c5abf5299
   DIR parent 41f6fec2acb19435eb8f87af96c391d2489b6c66
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 19 Feb 2016 13:58:05 +0100
       
       addrequest: do not set expiration date by default
       
       Diffstat:
         M lib/commands.py                     |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/commands.py b/lib/commands.py
       t@@ -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:
       t@@ -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)