Net processing: Tidy up CNodeState ctor #21424

pull jnewbery wants to merge 2 commits into bitcoin:master from jnewbery:2021-03-cnodestate-ctor-tidy changing 1 files +6 −10
  1. jnewbery commented at 11:45 AM on March 12, 2021: member

    This addresses the two outstanding review comments from #21370.

  2. [net processing] Remove CNodeState ctor body
    It's a no-op. The ctor for RollingBloomFilter already calls reset().
    55966e0cc0
  3. [net processing] Add ChainSyncTimeoutState default initializers
    Moves the default values closer to the member definitions.
    6927933782
  4. jnewbery commented at 11:46 AM on March 12, 2021: member
  5. fanquake added the label P2P on Mar 12, 2021
  6. MarcoFalke added the label Refactoring on Mar 12, 2021
  7. hebasto approved
  8. hebasto commented at 12:57 PM on March 12, 2021: member

    ACK 6927933782acb9b158787e6f35debb916793f6b1, I have reviewed the code and it looks OK, I agree it can be merged.

  9. practicalswift commented at 4:35 PM on March 15, 2021: contributor

    cr ACK 6927933782acb9b158787e6f35debb916793f6b1: patch looks correct

    Note to reviewers regarding the removal of m_recently_announced_invs.reset(): CRollingBloomFilter::reset() is already run as part of the CRollingBloomFilter ctor.

  10. MarcoFalke merged this on Mar 15, 2021
  11. MarcoFalke closed this on Mar 15, 2021

  12. jnewbery deleted the branch on Mar 15, 2021
  13. sidhujag referenced this in commit 345d1433f0 on Mar 15, 2021
  14. DrahtBot locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 09:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me