URI: 
       tfix amount in open_channel, add listchannels command - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 762dea6593779e25c12419998e5290aed5dbe656
   DIR parent b71f020fc9f3b09f9bc6a575f9027b3527e95652
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Mon, 28 May 2018 12:06:37 +0200
       
       fix amount in open_channel, add listchannels command
       
       Diffstat:
         M electrum/commands.py                |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/commands.py b/electrum/commands.py
       t@@ -766,7 +766,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):
       t@@ -777,9 +777,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