-
Notifications
You must be signed in to change notification settings - Fork 37.7k
refactor: Continue moving application data from CNode to Peer #26621
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
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
58269b5
to
8337193
Compare
8337193
to
f549881
Compare
f549881
to
8209e93
Compare
What's the goal of this refactor? Seems like the "refactor moratorium" should apply? |
This is continuing the work outlined here: #19398 |
Most of the stats in CNodeStateStats are now taken from the Peer object. Rename the struct to PeerStats. -BEGIN VERIFY SCRIPT- ren() { sed -i "s:\<$1\>:$2:g" $(git grep -l "\<$1\>" ./src ./test); } ren CNodeStateStats PeerStats ren GetNodeStateStats GetPeerStats ren nodeStateStats m_peer_stats ren statestats peer_stats ren fNodeStateStatsAvailable m_peer_stats_available ren fStateStats peer_stats_available -END VERIFY SCRIPT-
Also rename to m_clean_subversion. Since the subversion is now contained in the Peer object, it may not be available in `getpeerinfo` while the peer connection is being torn down. Update the rpc help text to mark the field optional and update the tests to tolerate the field being absent.
Handle version nonces entirely within net_processing.
58220e2
to
a840290
Compare
🐙 This pull request conflicts with the target branch and needs rebase. |
This PR picks up a subset of changes from #24970 and additionally moves
m_bip152_highbandwith{to,from}
,nTimeOffset
,nVersion
,m_greates_common_version
.