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

Add Private Channel Rule for ChannelInterceptor #12

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

ziggie1984
Copy link
Contributor

@ziggie1984 ziggie1984 commented Dec 21, 2022

This PR adds an example rule for accepting private channels only up to a certain size. It checks the least significant bit of ChannelAccept.Event.ChannelFlags which encodes this information ((ChannelAccept.Event.ChannelFlags & 1) == 0 for private channels and 1 for public channels).

@ziggie1984
Copy link
Contributor Author

Fixes #11

@ziggie1984 ziggie1984 force-pushed the add-private-channel-example branch from 924e6eb to 715bcf1 Compare December 21, 2022 13:56
@callebtc
Copy link
Owner

Thank you for this PR.

@callebtc callebtc merged commit 8f80df4 into callebtc:main Dec 21, 2022
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