From 5b4283cb81b5d3023b9868d121b22b1f387a50ca Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Thu, 17 Jan 2019 18:27:13 -0500 Subject: Add comment describing fDisconnect behavior --- src/net.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net.h b/src/net.h index 430e148afa..a6a57821dc 100644 --- a/src/net.h +++ b/src/net.h @@ -689,6 +689,8 @@ public: bool m_limited_node{false}; //after BIP159, set by version message const bool fInbound; std::atomic_bool fSuccessfullyConnected{false}; + // Setting fDisconnect to true will cause the node to be disconnected the + // next time DisconnectNodes() runs std::atomic_bool fDisconnect{false}; // We use fRelayTxes for two purposes - // a) it allows us to not relay tx invs before receiving the peer's version message -- cgit v1.2.3