Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Feb 15, 2021

No description provided.

…aves

Can be reviewed with --ignore-all-space
@maflcko
Copy link
Member Author

maflcko commented Feb 15, 2021

Stolen from @vasild from #20845 (review)

Copy link
Contributor

@vasild vasild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK d02e486

Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK d02e486

A similar change is proposed to the eviction logic in #20197.

if (pnode.addr.IsLocal() || pnode.m_inbound_onion) {
// We disconnect local or onion peers for bad behavior but don't discourage
// (since that would discourage all peers on the same address)
if (pnode.m_inbound_onion) {
Copy link
Member

@jonatack jonatack Feb 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

micro-nit, could save a conditional and a level of nesting by testing for IsLocal() and then for m_inbound_onion, though I could see the argument for choosing to group similar cases

@DrahtBot DrahtBot added the P2P label Feb 15, 2021
@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@DrahtBot
Copy link
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".

@maflcko
Copy link
Member Author

maflcko commented Feb 16, 2021

It seems unlikely that one uses a non-local onion proxy, so I am going to close this for now. Someone else can pick this up. Maybe after #20845 is merged...

@maflcko maflcko closed this Feb 16, 2021
@maflcko maflcko deleted the 2102-netOnionInboundDiscourage branch February 16, 2021 12:39
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants