Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activated features should be a map instead of a set #225

Merged
merged 2 commits into from
Mar 12, 2021
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Mar 11, 2021

It doesn't make sense to use a set, because we could end up having a feature activated twice (once as optional and once as mandatory).

It should instead be a Map<Feature, FeatureSupport>.

The same change was made in eclair in ACINQ/eclair#1715.

t-bast added 2 commits March 11, 2021 12:21
It doesn't make sense to use a set, because we could end up having a feature
activated twice (once as optional and once as mandatory).

It should instead be a Map<Feature, FeatureSupport>.
@t-bast t-bast merged commit 2530895 into master Mar 12, 2021
@t-bast t-bast deleted the features-map branch March 12, 2021 13:29
t-bast added a commit that referenced this pull request Mar 15, 2021
Merging PR #224 broke the test suite, because it added a test case that
conflicted with PR #225 but was not detected as a merge conflict because
it was completely new code.
@t-bast t-bast mentioned this pull request Mar 15, 2021
t-bast added a commit that referenced this pull request Mar 15, 2021
Merging PR #224 broke the test suite, because it added a test case that
conflicted with PR #225 but was not detected as a merge conflict because
it was completely new code.
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.

2 participants