Merge #20291: [net] Consolidate logic around calling CAddrMan::Connec…

Merge #20291: [net] Consolidate logic around calling CAddrMan::Connected()

0bfce9dc46234b196a8b3679c21d6f8455962495 [addrman] Fix Connected() comment (John Newbery)
eefe19471868ef0cdc9d32473d0b57015e7647ee [net] Consolidate logic around calling CAddrMan::Connected() (John Newbery)

Pull request description:

  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.

ACKs for top commit:
  mzumsande:
    Code review ACK 0bfce9dc46234b196a8b3679c21d6f8455962495
  amitiuttarwar:
    code review ACK 0bfce9dc46. nice tidy, and bonus that we get to remove an unnecessary call to `cs_main`

Tree-SHA512: 1ab74dae3bc12a6846da57c853033e546bb4f91caa39f4c50bf0cf7eca59cb917bdb2ef795da55363e7e9f70949cb28bb3be004cb3afa4389f970d2fe097d932

情報元 - Merge #20291: [net] Consolidate logic around calling CAddrMan::Connec… · bitcoin/[email protected] · GitHub

Merge #20291: [net] Consolidate logic around calling CAddrMan::Connec… · bitcoin/bitcoin@884bde5 · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る