aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCarl Dong <accounts@carldong.me>2019-01-17 18:27:13 -0500
committerCarl Dong <accounts@carldong.me>2019-01-17 18:27:13 -0500
commit5b4283cb81b5d3023b9868d121b22b1f387a50ca (patch)
treea352e2b75a30b50ba8273a42c0d697db11aee348 /src/net.h
parentcd42553b1178a48a16017eff0b70669c84c3895c (diff)
Add comment describing fDisconnect behavior
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 2 insertions, 0 deletions
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