Skip to content

Conversation

@Camillarhi
Copy link
Contributor

This PR adds configuration options to control which peers can open inbound channels and how many channels each peer can open.

Right now, we can manually accept/reject each channel, but we don't have a way to automatically block known bad peers or stop a peer from spamming with lots of channels.

Changes

  • Add blocked_peers list to automatically reject channels from specific peers
  • Add max_channels_per_peer option to limit channels per peer

- Add `blocked_peers` list to automatically reject channels from specific peers
- Add `max_channels_per_peer` option to limit channels per peer
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Nov 13, 2025

👋 I see @tnull was un-assigned.
If you'd like another reviewer assignment, please click here.

@ldk-reviews-bot
Copy link

🔔 1st Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 2nd Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 3rd Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 4th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 5th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 6th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 7th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 8th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 9th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 10th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 11th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 12th Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@tnull
Copy link
Collaborator

tnull commented Dec 12, 2025

Excuse the delay here, just want to explain why we didn't move forward with this yet: I think we want to hold off on this for now until we figured out how exactly the service-side API designs will change in general going forward. In particular we're planning to refactor the LSP service APIs soon to allow users more fine-grained control. Given the changes in this PR are somewhat related, we should at least ensure that the 'design language' so to speak follows the same pattern. So I'd prefer to punt on this a bit longer and then do all in one go. Hope that makes sense.

@tnull tnull removed their request for review December 12, 2025 10:10
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.

3 participants