Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Move m_num_unconnecting_headers_msgs out of cs_main guard #25555

Closed
wants to merge 1 commit into from

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jul 6, 2022

The variable does not need to be guarded by cs_main, so move it out of the cs_main scope. It is not used for validation-specific state, but only for headers-processing internal state and logging.

src/net_processing.cpp Show resolved Hide resolved
src/net_processing.cpp Outdated Show resolved Hide resolved
@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 7, 2022

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #26140 (refactor: Move CNodeState members guarded by g_msgproc_mutex to Peer by dergoegge)
  • #24571 (p2p: Prevent block index fingerprinting by sending additional getheaders messages by dergoegge)

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.

@achow101
Copy link
Member

Are you still working on this?

@maflcko maflcko force-pushed the 2207-p2p-less-cs_main- branch 2 times, most recently from fa5585b to fad5d82 Compare October 24, 2022 12:57
@maflcko
Copy link
Member Author

maflcko commented Oct 24, 2022

Rebased, but closing for now to pick it up later

@maflcko maflcko closed this Oct 24, 2022
@maflcko maflcko deleted the 2207-p2p-less-cs_main-🍘 branch October 24, 2022 13:15
@bitcoin bitcoin locked and limited conversation to collaborators Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants