Browse Source
fix amount in open_channel, add listchannels command
regtest_lnd
ThomasV
7 years ago
committed by
SomberNight
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
6 additions and
2 deletions
-
electrum/commands.py
|
|
@ -770,7 +770,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): |
|
|
@ -781,9 +781,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() |
|
|
|
|
|
|
|
def eval_bool(x: str) -> bool: |
|
|
|
if x == 'false': return False |
|
|
|
if x == 'true': return True |
|
|
|