Skip to content

Commit ebde946

Browse files
committed
[doc] Improve comment about protected peers
The comment currently suggests a long-standing node would infrequently protect peers under normal circumstances. Clarify that we also protect peers that are synced to the same work as our chain tip.
1 parent a8b0892 commit ebde946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ struct CNodeState {
541541
* - its connection type is IsBlockOnlyConn() == false
542542
* - it gave us a valid connecting header
543543
* - we haven't reached MAX_OUTBOUND_PEERS_TO_PROTECT_FROM_DISCONNECT yet
544-
* - it has a better chain than we have
544+
* - its chain tip has at least as much work as ours
545545
*
546546
* CHAIN_SYNC_TIMEOUT: if a peer's best known block has less work than our tip,
547547
* set a timeout CHAIN_SYNC_TIMEOUT seconds in the future:

0 commit comments

Comments
 (0)