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

[Info] Limiting Private Channels to your node #11

Open
ziggie1984 opened this issue Dec 21, 2022 · 3 comments
Open

[Info] Limiting Private Channels to your node #11

ziggie1984 opened this issue Dec 21, 2022 · 3 comments

Comments

@ziggie1984
Copy link
Contributor

Just as an Info, I want to limit private Channels being opened to my node, though there is no explicit private type parameter therefore you need to check the ChannelFlag variable for the least significant bit. Its kind of hidden, therefore I am reporting this here.

Add this to the rules/ChannelAccept.js when you only want to allow Public Channels and vice versa for private ones.
(ChannelAccept.Event.ChannelFlags & 1) == 1

@callebtc
Copy link
Owner

Thank you that's very useful info, I could add this as an example!

@ziggie1984
Copy link
Contributor Author

sounds good will do

@ziggie1984
Copy link
Contributor Author

in an extra file ChannelAccept.js.sample or in the current one ?

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

No branches or pull requests

2 participants