Skip to content

doc: better document NetEventsInterface and the deletion of "CNode"s#32278

Open
vasild wants to merge 1 commit into
bitcoin:masterfrom
vasild:doc_NetEventsInterface
Open

doc: better document NetEventsInterface and the deletion of "CNode"s#32278
vasild wants to merge 1 commit into
bitcoin:masterfrom
vasild:doc_NetEventsInterface

Conversation

@vasild

@vasild vasild commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

Document the requirements around the NetEventsInterface's methods and the lifetime of CNode objects in CConnman::m_nodes.

@DrahtBot

DrahtBot commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32278.

Reviews

See the guideline for information on the review process.

Type Reviewers
Stale ACK w0xlt

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35600 (net: prevent duplication manual connections (take 2) by willcl-ark)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

LLM Linter (✨ experimental)

Possible typos and grammar issues:

  • no-referenced CNode -> unreferenced CNode [“no-referenced” is not valid English and obscures the intended meaning]

2026-06-22 13:37:05

@vasild

vasild commented Apr 16, 2025

Copy link
Copy Markdown
Contributor Author

1091faf8ff...0f26ac35e2 and 0f26ac35e2...e44e669378: further elaborate how we safely access CNodes in m_nodes and how we avoid CNode destruction while it is being referenced.

@DrahtBot DrahtBot mentioned this pull request Apr 16, 2025

@w0xlt w0xlt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK e44e669

Clear improvement in documentation.

Comment thread src/net.h Outdated
Comment thread src/net.h Outdated
Comment thread src/net.h Outdated
Comment thread src/net.h
@vasild vasild force-pushed the doc_NetEventsInterface branch from e44e669 to 110548c Compare November 13, 2025 15:42
@vasild

vasild commented Nov 13, 2025

Copy link
Copy Markdown
Contributor Author

e44e669378...110548c9ea: take suggestions

@sedited

sedited commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

@vasild can you rebase this?

Document the requirements around the `NetEventsInterface`'s methods and
the lifetime of `CNode` objects in `CConnman::m_nodes`.

Co-authored-by: Anthony Towns <aj@erisian.com.au>
@vasild vasild force-pushed the doc_NetEventsInterface branch from 110548c to 5647c18 Compare June 22, 2026 13:36
@vasild

vasild commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

110548c9eabc0bdd1341e4aafe9fe3f9119ed7be...5647c188138ae03cdb15db7a99b7e6b160bb9ba0: rebase due to conflicts, thanks for the ping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants