Skip to content

Commit 978682b

Browse files
committed
Merge #15194: Add comment describing fDisconnect behavior
5b4283c Add comment describing fDisconnect behavior (Carl Dong) Pull request description: Motivated by @Sjors here: bitcoin/bitcoin#14605 (comment) Tree-SHA512: 8fc52eb4d3b5651c19c49b47fad75e8fb939cf524ada647e88d8d5aad7726052d94e500c1ebdb2a41b67bc4669ee61ff151a5cff81a52c68c900da562ef21751
2 parents fe60ee9 + 5b4283c commit 978682b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/net.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,8 @@ class CNode
689689
bool m_limited_node{false}; //after BIP159, set by version message
690690
const bool fInbound;
691691
std::atomic_bool fSuccessfullyConnected{false};
692+
// Setting fDisconnect to true will cause the node to be disconnected the
693+
// next time DisconnectNodes() runs
692694
std::atomic_bool fDisconnect{false};
693695
// We use fRelayTxes for two purposes -
694696
// a) it allows us to not relay tx invs before receiving the peer's version message

0 commit comments

Comments
 (0)