diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-01-20 16:10:44 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-01-20 16:11:41 +0100 |
commit | 978682b9dccfb48425c0129431bb108e78e33e4e (patch) | |
tree | d2dc49997a2e4d1deb6cd4936b22a32d3eaf0dd4 /src | |
parent | fe60ee96e9155a0e3f81da2a2d21e6e884b8cc8b (diff) | |
parent | 5b4283cb81b5d3023b9868d121b22b1f387a50ca (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |