dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

backport: merge bitcoin#24024, #23880, #24909, #24178, #24171, #25404, #25514, #25720, partial bitcoin#23832, #24169, #25454 (headers backports) #6097

Closed kwvg closed 1 month ago

kwvg commented 3 months ago

Additional Information

Checklist:

github-actions[bot] commented 2 months ago

This pull request has conflicts, please rebase.

github-actions[bot] commented 2 months ago

This pull request has conflicts, please rebase.

UdjinM6 commented 2 months ago

https://github.com/bitcoin/bitcoin/pull/25514 removes peers.spvNodeConnections and peers.fullNodeConnections reporting from CalculateNumConnectionsChangedStats as the services flags used to distingush between the two have been moved to the Peer struct, accessable only through PeerManager. As PeerManager isn't accessable to CConnman, even if a new public function was exposed through PeerManger (as we have for IsInvInFilter and others or we try to access the value through GetNodeStateStats), CConnman would be unable to leverage it. ... Breaking Changes Statistics reporting that expect peers.spvNodeConnections and peers.fullNodeConnections to be reported will find that they are no longer available. The reasoning for which has already been documented above.

How about altering spv detection logic instead? d92560a38149a863961ee7fff65707732c28036b

UdjinM6 commented 1 month ago

needs rebase to fix Check Merge Fast-Forward Only