|
@ -568,6 +568,19 @@ class Commands: |
|
|
out = filter(lambda x: x.get('status')==f, out) |
|
|
out = filter(lambda x: x.get('status')==f, out) |
|
|
return map(self._format_request, out) |
|
|
return map(self._format_request, out) |
|
|
|
|
|
|
|
|
|
|
|
@command('w') |
|
|
|
|
|
def getunusedaddress(self,force=False): |
|
|
|
|
|
"""Returns the first unused address.""" |
|
|
|
|
|
addr = self.wallet.get_unused_address() |
|
|
|
|
|
if addr is None and force: |
|
|
|
|
|
addr = self.wallet.create_new_address(False) |
|
|
|
|
|
|
|
|
|
|
|
if addr: |
|
|
|
|
|
return addr |
|
|
|
|
|
else: |
|
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@command('w') |
|
|
@command('w') |
|
|
def addrequest(self, amount, memo='', expiration=None, force=False): |
|
|
def addrequest(self, amount, memo='', expiration=None, force=False): |
|
|
"""Create a payment request.""" |
|
|
"""Create a payment request.""" |
|
|