electrum

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

commit 6d54512627d008c9658329dae4189a774464405c
parent 508b5373ac009f9d7cde29a8c2c493ab0524dd1f
Author: ThomasV <thomasv@gitorious>
Date:   Wed, 22 Jul 2015 15:46:53 +0200

clearrequests command; minor type fix

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

diff --git a/lib/commands.py b/lib/commands.py @@ -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) @@ -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',