mirror of
https://github.com/bitromortac/lndmanage.git
synced 2026-08-13 12:33:37 +02:00
adds the main listpeers command with subcommands * listpeers in: sorted by total incoming funds * listpeers out: sorted by total outgoing funds
13 lines
419 B
Python
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')
|