Skip to content
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

Backport Bitcoin PR#8128: Net: Turn net structures into dumb storage classes #1604

Merged
merged 8 commits into from
Sep 3, 2017

Conversation

OlegGirko
Copy link

This is backport of Bitcoin PR bitcoin#8128.

This PR is followup for PR #1601.

The original PR description follows.

This finishes the work started in bitcoin#7868. The changed lines count is high, but it's mostly tests.

CNetAddr/CService/CSubNet lose their string constructors, they must now have lookup operations performed externally. This means that functions/classes that depend on them are no longer dependent on any particular lookup mechanism.

From a high level: New resolvers/parsers may now be used for net operations. libbtcnet will replace what remains of netbase with async versions.

Net functionality is no longer needed for CAddress/CAddrman/etc. now that
CNetAddr/CService/CSubNet are dumb storage classes.
Also fix up a few small issues:
- Lookup with "badip:port" now sets the port to 0
- Don't allow assert to have side-effects
@UdjinM6 UdjinM6 added this to the 12.0 milestone Sep 3, 2017
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 modified the milestones: 12.2, 12.0 Sep 3, 2017
@UdjinM6 UdjinM6 merged commit b82b978 into dashpay:v0.12.2.x Sep 3, 2017
@OlegGirko OlegGirko deleted the bc-pr-8128 branch September 3, 2017 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants