Skip to content

smite: compare channel types in minimal form - #218

Open
morehouse wants to merge 1 commit into
masterfrom
minimalize_channel_types
Open

smite: compare channel types in minimal form#218
morehouse wants to merge 1 commit into
masterfrom
minimalize_channel_types

Conversation

@morehouse

Copy link
Copy Markdown
Collaborator

Previously we would compare channel types directly, which caused a false positive report when our open_channel.channel_type was non-minimal and the target responded with an accept_channel.channel_type in minimal form.

Fixes #217.

Previously we would compare channel types directly, which caused a false
positive report when our open_channel.channel_type was non-minimal and
the target responded with and accept_channel.channel_type in minimal
form.
@NishantBansal2003

Copy link
Copy Markdown
Contributor

FWIW, this should already be fixed in #209, where we define channel_type as a Features struct and implement PartialEq for it that compares the two features based on their feature bit sets rather than comparing the raw vectors directly. See (tests): https://github.com/NishantBansal2003/smite/blob/2c016d40457120c162f9a0997c8802341e943d10/smite/src/bolt/features.rs#L314-L316

@morehouse

Copy link
Copy Markdown
Collaborator Author

Cool, yeah I'm behind on reviews and haven't looked at #209 yet. Will try to catch up soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive due to non-minimal channel type

2 participants