Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chans = lnd.listchannels(source=mychan)['channels']
- for chan in chans:
- if chan['active'] == False:
- total_inactive += 1
- print('inactive chan with node: ' + chan['destination'])
- else:
- total_active += 1
- print('my inactive chans: ' + str(total_inactive))
- print('my active chans: ' + str(total_active))
- my inactive chans: 2
- my active chans: 23
- "num_active_channels": 25,
- "num_inactive_channels": 5,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement