dashpay / dash

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

backport: merge bitcoin#22879, #22762, #23041, #22734, #22950, #23053, #22839, #23140, #23306, #23354, #23380 (addrman backports: part 2) #6043

Closed kwvg closed 3 months ago

kwvg commented 4 months ago

Additional Information


I would propose at some point to rename the flag to ignore_port/suppress_port (if not remove it altogether should the mainnet restriction be lifted) as discriminate (or distinguish) isn't immediately clear with if address entries will be discriminated/distinguished using ports (i.e. considered) or ports will be discriminated against (i.e. ignored).

Breaking Changes

It's unclear if these backports result in serialization issues for older versions, as Dash Core technically supported address-port pairs since 0.12 and suppressed it on mainnet by setting zero-ing out the port (source), meaning even with port discrimination disabled, the serialization format should remain the same.

Regardless, following upstream backports, a new version has been introduced (v4) that marks the AddrMan format incompatible with older versions of Dash Core.

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

github-actions[bot] commented 4 months ago

This pull request has conflicts, please rebase.

github-actions[bot] commented 3 months ago

This pull request has conflicts, please rebase.