mirror of
https://github.com/bitromortac/lndmanage.git
synced 2026-08-13 12:33:37 +02:00
* shifted important packages to lndmanage folder * fixed import statements * created executable in project directory to be able to run directly * determine project directory in settings
13 lines
423 B
Python
13 lines
423 B
Python
from lndmanage.lib.listchannels 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')
|