Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This requires PR #1831.
In order to make use of
chaincfg/v2
, a new major version of theconnmgr
module is required becauseconnmgr/v1
accepts and returns types fromchaincfg/v1
in its API.Since a new major version is required, this also takes the opportunity to remove the tight coupling to
chaincfg
, by removing the sole reference to*chaincfg.Params
in its API.Consequently, this introduces
connmgr/v2
. A series of individual commits is provided to make the review process easier. Each commit message more thoroughly describes its purpose, but primarily they consist of the following:connmgr
module useconnmgr
override so building the software will still produce binaries based on thev1
module until thev2
module is fully releasedchaincfg
.v2
Finally, it should also be noted that this only introduces the new module and does not update anything to make use of it yet, so building the software will still produce binaries based on the
v1
module.