Skip to content

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

@arshbot

Description

@arshbot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions