Skip to content

Conversation

@kevkevinpal
Copy link
Owner

@kevkevinpal kevkevinpal commented Nov 30, 2025

Description

Refactor MaybeDiscourageAndDisconnect to accept individual parameters (has_no_ban, is_manual, is_local_addr, is_inbound_onion, peer_addr) instead of taking a CNode& reference directly.

This decouples the function from CNode while preserving all original logic paths and behavior.

This is a part of #add-issue-num

@kevkevinpal kevkevinpal force-pushed the refactor/decouple-cnode-from-maybe-discourage branch 2 times, most recently from 41574dd to 15ce12c Compare December 1, 2025 14:30
…Disconnect

Refactor MaybeDiscourageAndDisconnect to accept individual parameters (has_no_ban, is_manual, is_local_addr, is_inbound_onion, peer_addr)
instead of taking a CNode& reference directly.
This decouples the function from CNode while preserving all original logic paths and behavior.
@kevkevinpal kevkevinpal force-pushed the refactor/decouple-cnode-from-maybe-discourage branch from 15ce12c to 635fc6a Compare December 1, 2025 15:19
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