Skip to content

Commit a13a8cd

Browse files
committed
Merge #21394: [doc] Improve comment about protected peers
ebde946 [doc] Improve comment about protected peers (Amiti Uttarwar) Pull request description: 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. [Relevant check here](https://github.com/bitcoin/bitcoin/blob/ee0dc02c6f93de2a366bbff490eb4d37bca6a24f/src/net_processing.cpp#L1997). ACKs for top commit: Empact: ACK bitcoin/bitcoin@ebde946 jnewbery: ACK ebde946 Tree-SHA512: 3692f4098e95f935d801e0ee6bbd3a7c9480e66ca070a7c68ba79c4fc2e62377f5d37080c7b6a7d15ab617aaf4d3df9b26abc4f1b090d572ba46fdd092a6a64a
2 parents b972913 + ebde946 commit a13a8cd

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
@@ -557,7 +557,7 @@ struct CNodeState {
557557
* - its connection type is IsBlockOnlyConn() == false
558558
* - it gave us a valid connecting header
559559
* - we haven't reached MAX_OUTBOUND_PEERS_TO_PROTECT_FROM_DISCONNECT yet
560-
* - it has a better chain than we have
560+
* - its chain tip has at least as much work as ours
561561
*
562562
* CHAIN_SYNC_TIMEOUT: if a peer's best known block has less work than our tip,
563563
* set a timeout CHAIN_SYNC_TIMEOUT seconds in the future:

0 commit comments

Comments
 (0)