URI: 
       tclearrequests command; minor type fix - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 6d54512627d008c9658329dae4189a774464405c
   DIR parent 508b5373ac009f9d7cde29a8c2c493ab0524dd1f
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Wed, 22 Jul 2015 15:46:53 +0200
       
       clearrequests command; minor type fix
       
       Diffstat:
         M lib/commands.py                     |       8 ++++++++
       
       1 file changed, 8 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/lib/commands.py b/lib/commands.py
       t@@ -574,6 +574,7 @@ class Commands:
                    else:
                        return False
                amount = int(Decimal(requested_amount)*COIN)
       +        expiration = int(expiration)
                req = self.wallet.make_payment_request(addr, amount, memo, expiration)
                self.wallet.add_payment_request(req, self.config)
                return self._format_request(req)
       t@@ -590,6 +591,13 @@ class Commands:
                """Remove a payment request"""
                return self.wallet.remove_payment_request(address, self.config)
        
       +    @command('w')
       +    def clearrequests(self):
       +        """Remove all payment requests"""
       +        for k in self.wallet.receive_requests.keys():
       +            self.wallet.remove_payment_request(k, self.config)
       +
       +
        param_descriptions = {
            'privkey': 'Private key. Type \'?\' to get a prompt.',
            'destination': 'Bitcoin address, contact or alias',