fix amount in open_channel, add listchannels command
This commit is contained in:
parent
9598978cc4
commit
db75ff04ce
@ -684,7 +684,7 @@ class Commands:
|
||||
# lightning network commands
|
||||
@command('wpn')
|
||||
def open_channel(self, node_id, amount, push_msat=0, password=None):
|
||||
self.wallet.lnworker.open_channel(node_id, amount, push_msat, password)
|
||||
self.wallet.lnworker.open_channel(node_id, satoshis(amount), push_msat, password)
|
||||
|
||||
@command('wn')
|
||||
def reestablish_channel(self):
|
||||
@ -695,9 +695,13 @@ class Commands:
|
||||
self.wallet.lnworker.pay()
|
||||
|
||||
@command('wn')
|
||||
def lnreceive():
|
||||
def lnreceive(self):
|
||||
self.wallet.lnworker.get_paid()
|
||||
|
||||
@command('wn')
|
||||
def listchannels(self):
|
||||
return self.wallet.lnworker.list_channels()
|
||||
|
||||
|
||||
param_descriptions = {
|
||||
'privkey': 'Private key. Type \'?\' to get a prompt.',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user