lndmanage/examples/example_node_info.py
bitromortac 8910bdedbf
listpeers: list aggregated channel data of peers
adds the main listpeers command with subcommands
* listpeers in: sorted by total incoming funds
* listpeers out: sorted by total outgoing funds
2021-11-19 19:54:34 +01:00

13 lines
419 B
Python

from lndmanage.lib.listings import ListChannels
from lndmanage.lib.node import LndNode
from lndmanage import settings
import logging.config
logging.config.dictConfig(settings.logger_config)
if __name__ == '__main__':
node = LndNode()
listchannels = ListChannels(node)
node.print_status()
listchannels.print_channels_unbalanced(
unbalancedness=settings.UNBALANCED_CHANNEL, sort_string='alias')