1
0

CLI: cosmetic changes and cleanup

This commit is contained in:
ThomasV
2025-05-29 16:44:01 +02:00
parent 853b793bef
commit 11fc3ccf33

View File

@@ -547,10 +547,10 @@ class Commands(Logger):
@command('') @command('')
async def signtransaction_with_privkey(self, tx, privkey): async def signtransaction_with_privkey(self, tx, privkey):
"""Sign a transaction. The provided list of private keys will be used to sign the transaction. """Sign a transaction with private keys passed as parameter.
arg:tx:tx:Transaction to sign arg:tx:tx:Transaction to sign
arg:str:privkey:private key arg:str:privkey:private key or list of private keys
""" """
tx = tx_from_any(tx) tx = tx_from_any(tx)
@@ -576,7 +576,7 @@ class Commands(Logger):
@command('wp') @command('wp')
async def signtransaction(self, tx, password=None, wallet: Abstract_Wallet = None, ignore_warnings: bool=False): async def signtransaction(self, tx, password=None, wallet: Abstract_Wallet = None, ignore_warnings: bool=False):
""" """
Sign a transaction. The wallet keys will be used to sign the transaction. Sign a transaction with the current wallet.
arg:tx:tx:transaction arg:tx:tx:transaction
arg:bool:ignore_warnings:ignore warnings arg:bool:ignore_warnings:ignore warnings
@@ -1122,7 +1122,7 @@ class Commands(Logger):
return wallet.contacts return wallet.contacts
@command('w') @command('w')
async def getalias(self, key, wallet: Abstract_Wallet = None): async def getopenalias(self, key, wallet: Abstract_Wallet = None):
""" """
Retrieve alias. Lookup in your list of contacts, and for an OpenAlias DNS record. Retrieve alias. Lookup in your list of contacts, and for an OpenAlias DNS record.
@@ -1251,11 +1251,6 @@ class Commands(Logger):
raise UserFacingException("Request not found") raise UserFacingException("Request not found")
return wallet.export_invoice(r) return wallet.export_invoice(r)
#@command('w')
#async def ackrequest(self, serialized):
# """<Not implemented>"""
# pass
def _filter_invoices(self, _list, wallet, pending, expired, paid): def _filter_invoices(self, _list, wallet, pending, expired, paid):
if pending: if pending:
f = PR_UNPAID f = PR_UNPAID
@@ -1480,6 +1475,7 @@ class Commands(Logger):
@command('') @command('')
async def help(self): async def help(self):
"""Show help about a command"""
# for the python console # for the python console
return sorted(known_commands.keys()) return sorted(known_commands.keys())