aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2019-01-20 16:10:44 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2019-01-20 16:11:41 +0100
commit978682b9dccfb48425c0129431bb108e78e33e4e (patch)
treed2dc49997a2e4d1deb6cd4936b22a32d3eaf0dd4 /src
parentfe60ee96e9155a0e3f81da2a2d21e6e884b8cc8b (diff)
parent5b4283cb81b5d3023b9868d121b22b1f387a50ca (diff)
Merge #15194: Add comment describing fDisconnect behavior
5b4283cb81b5d3023b9868d121b22b1f387a50ca Add comment describing fDisconnect behavior (Carl Dong) Pull request description: Motivated by @Sjors here: https://github.com/bitcoin/bitcoin/pull/14605#discussion_r248384309 Tree-SHA512: 8fc52eb4d3b5651c19c49b47fad75e8fb939cf524ada647e88d8d5aad7726052d94e500c1ebdb2a41b67bc4669ee61ff151a5cff81a52c68c900da562ef21751
Diffstat (limited to 'src')
-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