accessman: remove restrictions on protected/temporary peers#9876
accessman: remove restrictions on protected/temporary peers#9876guggero merged 4 commits intolightningnetwork:masterfrom
Conversation
|
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ziggie1984
left a comment
There was a problem hiding this comment.
Missing release-notes, otherwise LGTM
9776c41 to
fb5563b
Compare
| ErrNoMoreRestrictedAccessSlots, | ||
| "num_restricted", a.numRestricted, | ||
| "max_restricted", a.cfg.maxRestrictedSlots) | ||
| if a.numRestricted >= a.cfg.maxRestrictedSlots { |
There was a problem hiding this comment.
Looking at some of the call path here, I think this a race: we're not holding banScoreMtx here. So we should either:
- hold it directly
- add helper method that holds and returns the value
- atomic
There was a problem hiding this comment.
Ah ok, it was only introduced in this PR, as the defer above was removed.
There was a problem hiding this comment.
nice catch! now fixed
615120d to
d45621c
Compare
If a peer has, or used to have a channel with us there's no need to check for the ban score.
d45621c to
e0b6acb
Compare
If a peer has, or used to have a channel with us there's no need to check for the ban score.