commands: add dumpgraph command to see which nodes electrum knows about

This commit is contained in:
Janus 2018-09-27 16:39:14 +02:00 committed by SomberNight
parent 6c265bf949
commit dd576df67e
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -768,6 +768,10 @@ class Commands:
def listchannels(self):
return self.wallet.lnworker.list_channels()
@command('wn')
def dumpgraph(self):
return list(map(bh2u, self.wallet.lnworker.channel_db.nodes.keys()))
@command('n')
def inject_fees(self, fees):
import ast