arshbot / lnt

Lightning Network Tools -- better lncli for node admins
MIT License
5 stars 0 forks source link

TypeError: '<' not supported between instances of 'google.protobuf.pyext._message.RepeatedCompositeContainer' and 'google.protobuf.pyext._message.RepeatedCompositeContainer' #7

Open arshbot opened 4 years ago

arshbot commented 4 years ago

lnt --config ~/.lnt/stgconf view channel --max pending_htlcs throws an error when attempting to sort by pending_htlcs.

It appears to be related to the following line

sorted_channels = sorted(channels.items(), key=lambda kv: kv[1][sort_key])

Interestingly enough, when checking the value associated with the key pending_htlcs, every value returned was an empty array, so this may be a little bit more difficult to isolate.

For now I'm going to disable sorting by pending_htlcs. however if this is a commonly requested feature I'll revisit this.