electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c2db006c868254aa2a47bf72e923d49c5abf5299
parent 41f6fec2acb19435eb8f87af96c391d2489b6c66
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 19 Feb 2016 13:58:05 +0100

addrequest: do not set expiration date by default

Diffstat:
Mlib/commands.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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)