diff options
author | John Newbery <john@johnnewbery.com> | 2020-11-03 09:15:20 +0000 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-11-03 09:15:20 +0000 |
commit | eefe19471868ef0cdc9d32473d0b57015e7647ee (patch) | |
tree | 0a42752ec849c39d08c98355c79542875befb879 /src/addrman.h | |
parent | 5174b534da57066dca2e82a617c62919b6d638fd (diff) | |
download | bitcoin-eefe19471868ef0cdc9d32473d0b57015e7647ee.tar.xz |
[net] Consolidate logic around calling CAddrMan::Connected()
Currently, the logic around whether we called CAddrMan::Connected() for
a peer is spread between verack processing (where we discard inbound
peers) and FinalizeNode (where we discard misbehaving and
block-relay-only peers). Consolidate that logic to a single place.
Also remove the CNode.fCurrentlyConnected bool, which is now
redundant. We can rely on CNode.fSuccessfullyConnected, since the two
bools were only ever flipped to true in the same place.
Diffstat (limited to 'src/addrman.h')
0 files changed, 0 insertions, 0 deletions