1
I have strange results comparing node information outputs between getinfo() and listchannels() calls. Maybe someone has thoughts what is wrong (with my trivial code or with c-lightning itself):
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))
gives me:
my inactive chans: 2
my active chans: 23
But, lightning-cli getinfo gives:
"num_active_channels": 25,
"num_inactive_channels": 5,
waited for 10+ hours.. now things become even more strange. while upgrading the node there was an event when i launched backuped node copy, so many of my channels closed for some reason (perhaps channels closed because other nodes refused old data). anyway, tried again to launch script and getinfo:
getinfo: "num_active_channels" : 5, "num_inactive_channels" : 25
while script output: my inactive chans: 3 my active chans: 2
wierd.. but i think this is due to slow state refreshing in LN. will close manually 'inactive' channels i see on cli and then ill reply about results – baysx – 2019-04-29T10:22:32.153