Browse Source

fix amount in open_channel, add listchannels command

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 7 years ago
parent
commit
762dea6593
  1. 8
      electrum/commands.py

8
electrum/commands.py

@ -766,7 +766,7 @@ class Commands:
# lightning network commands # lightning network commands
@command('wpn') @command('wpn')
def open_channel(self, node_id, amount, push_msat=0, password=None): 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') @command('wn')
def reestablish_channel(self): def reestablish_channel(self):
@ -777,9 +777,13 @@ class Commands:
self.wallet.lnworker.pay() self.wallet.lnworker.pay()
@command('wn') @command('wn')
def lnreceive(): def lnreceive(self):
self.wallet.lnworker.get_paid() self.wallet.lnworker.get_paid()
@command('wn')
def listchannels(self):
return self.wallet.lnworker.list_channels()
def eval_bool(x: str) -> bool: def eval_bool(x: str) -> bool:
if x == 'false': return False if x == 'false': return False
if x == 'true': return True if x == 'true': return True

Loading…
Cancel
Save