Skip to content

Conversation

@cfromknecht
Copy link
Contributor

@cfromknecht cfromknecht commented Nov 20, 2019

This PR modifies our decoding of short channel id arrays to also assert that the decoded ids are in order for the plain encodings. We already do so for the zlib encoding, though this isn't tested directly. Here we correct the decoding make this assertion for plain encodings, and add unit tests to both QueryShortChanIDs and ReplyChannelRange to ensure that they fail with this error when presented with duplicate or unsorted channel ids for either plain or zlib.

@halseth halseth merged commit a6ef03c into lightningnetwork:master Dec 4, 2019
@cfromknecht cfromknecht deleted the in-order-sids branch December 8, 2019 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants