Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove circular dependency between secure <-> lib libraries #1867

Merged

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Mar 27, 2019

This PR removes any mention of secure in the lib library. The secure library has a few dependencies on the lib library, while the lib library currently has a dependency on the keypair class which is part of the secure library (which also currently has circular dependencies with the node library), this was part of a larger class network_params. A lot of this code used to be in the secure library before, so I've just moved it back. However it is necessary to know logic like which network we are on (test/live/beta) in the future RPC stuff so a new class network_constants has been created which incorporates this in the lib library.

@wezrule wezrule added the quality improvements This item indicates the need for or supplies changes that improve maintainability label Mar 27, 2019
@wezrule wezrule added this to the V19.0 milestone Mar 27, 2019
@wezrule wezrule self-assigned this Mar 27, 2019
@wezrule wezrule requested a review from cryptocode March 27, 2019 12:27
Copy link
Contributor

@clemahieu clemahieu left a comment

Choose a reason for hiding this comment

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

Perfect, a much needed untangling.

Copy link
Contributor

@cryptocode cryptocode left a comment

Choose a reason for hiding this comment

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

Splendid

@wezrule
Copy link
Contributor Author

wezrule commented Mar 27, 2019

Thanks!

@wezrule wezrule merged commit c45bfae into nanocurrency:master Mar 27, 2019
@wezrule wezrule deleted the split_secure_and_lib_dependencies branch March 27, 2019 13:43
guilhermelawless pushed a commit to guilhermelawless/nano-node that referenced this pull request Apr 15, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants