-
Notifications
You must be signed in to change notification settings - Fork 38.7k
net, refactor: extract Network and BIP155Network logic to node/network #27385
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. Code CoverageFor detailed information about the code coverage, see the test coverage report. 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. |
06009b7 to
8f647a6
Compare
8f647a6 to
55f249f
Compare
55f249f to
f362fba
Compare
|
Rebased! |
1cc9a56 to
8efd76b
Compare
Of course! re-tACK at 8efd76b, thanks for explaining the motivation and pointing out the design/doc :) |
May be good to add numbers? |
to avoid enumerator naming collisions with enum BIP155Network.
8efd76b to
c83d137
Compare
What do you mean by "build size"? |
|
🐙 This pull request conflicts with the target branch and needs rebase. |
Dropped "which may reduce build size and speed up build times" from the pull description. |
|
Are you still working on this? |
Yes, just have not been prioritizing it as there's been no positive interest other than one ACK. |
|
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
|
Closing for now. Feel free to open a new pull, if this is still relevant, or leave a comment here, to have it reopened. |
This extracts the
NetworkandBIP155Networklogic tonode/network. The code has been living betweennetaddressandnetbaseand some compilation units include these large files when they only need aNetworkenum or related method. Separating the code to a standalone unit innodeimproves code separation and helps with using only what is needed.I verified the
includeheaders with https://cirrus-ci.com/task/6749578737745920 generated by 8f647a6 while this was in draft and carefully narrowed them down to the most relevant ones.Possible todos for a follow-up: upgrade
Networkto anenum class, e.g.NET_I2PbecomesNetwork::I2Pand 5cfa3fb.