small fixes for addrequest
This commit is contained in:
parent
a088940496
commit
2e9cfb9800
|
@ -580,10 +580,10 @@ class Commands:
|
||||||
@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."""
|
||||||
addr = self.wallet.get_unused_address(None)
|
addr = self.wallet.get_unused_address()
|
||||||
if addr is None:
|
if addr is None:
|
||||||
if force:
|
if force:
|
||||||
addr = self.wallet.create_new_address(None, False)
|
addr = self.wallet.create_new_address(False)
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
amount = int(COIN*Decimal(amount))
|
amount = int(COIN*Decimal(amount))
|
||||||
|
|
Loading…
Reference in New Issue