Skip to content

Conversation

dergoegge
Copy link
Member

This PR picks up a subset of changes from #24970 and additionally moves m_bip152_highbandwith{to,from}, nTimeOffset, nVersion, m_greates_common_version.

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 1, 2022

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

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept NACK fanquake
Concept ACK theStack, mzumsande, hebasto

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #bitcoin-core/gui/754 (Add BIP324 "Transport" label to peer details by hebasto)
  • #bitcoin-core/gui/677 (Bugfix: Address broken things around Peers detail view by luke-jr)
  • #28464 (net: improve max-connection limits code by mzumsande)
  • #28463 (p2p: Increase inbound capacity for block-relay only connections by mzumsande)
  • #28423 (kernel: Remove protocol.h/netaddress.h/compat.h from kernel headers by TheCharlatan)
  • #28331 (BIP324 integration by sipa)
  • #28248 (p2p: peer connection bug fixes, logic and logging improvements by jonatack)
  • #28170 (p2p: adaptive connections services flags by furszy)
  • #28078 (net, refactor: remove unneeded exports, use helpers over low-level code, use optional by jonatack)
  • #28031 (Package Relay 1/3: Introduce TxPackageTracker as Orphan Resolution Module by glozow)
  • #27837 (net: introduce block tracker to retry to download blocks after failure by furszy)
  • #27581 (net: Continuous ASMap health check by fjahr)
  • #27052 (test: rpc: add last block announcement time to getpeerinfo result by LarryRuane)
  • #26326 (net: don't lock cs_main while reading blocks in net processing by andrewtoth)
  • #26283 (p2p: Fill reconciliation sets and request reconciliation (Erlay) by naumenkogs)
  • #21515 (Erlay: bandwidth-efficient transaction relay protocol by naumenkogs)

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.

@dergoegge dergoegge force-pushed the 2022-11-cnode-appdata-move-1 branch 2 times, most recently from 58269b5 to 8337193 Compare December 1, 2022 17:48
@dergoegge dergoegge force-pushed the 2022-11-cnode-appdata-move-1 branch from 8337193 to f549881 Compare December 5, 2022 15:28
@luke-jr
Copy link
Member

luke-jr commented Dec 7, 2022

What's the goal of this refactor? Seems like the "refactor moratorium" should apply?

@dergoegge
Copy link
Member Author

What's the goal of this refactor?

This is continuing the work outlined here: #19398

jnewbery and others added 7 commits September 11, 2023 13:53
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.
@DrahtBot
Copy link
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

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.

10 participants