-
Notifications
You must be signed in to change notification settings - Fork 87
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
Refactor network & consensus packages #4155
Conversation
The idea is to have a separate package that ties the know between network and consensus? Seems like a good idea to me. |
There are two other that I'd like to experiment with:
The idea is that |
0974ec4
to
ec00c35
Compare
I am not too sure what's behind each package, it would help to group them as |
Future tasks:
Then the production code will be isolated from testing. |
The API used by
This is a bit masked (in the graph above) by the fact that |
They are grouped using naming convetion: all
The first two will at some point be put in seprate git repos and published on |
|
Another remark: |
Requires #4159 (to fix github windows CI) |
743187f
to
a91fed4
Compare
@bolt12 I merged the two packages. |
601417b
to
2cd0673
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my comments.
There's one left: the typo in PR description (I commented there to try to clarify). I care because these end up in the merge commit messages.
Edit: this one #4155 (comment)
c9baec0
to
1a6f3ca
Compare
1a6f3ca
to
63ea756
Compare
I fixed |
I also deleted the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved 👏
@@ -0,0 +1,5 @@ | |||
module Ouroboros.Network.SizeInBytes (SizeInBytes) where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to Approve without this being resolved.
Top level integration of ouroboros-consensus & ouroboros-network.
`ouroboros-network-protocols` contains implementation of all mini-protocols except for `Handshake`. It contains three components: * `ouroboros-network-protocols` - the main library * `ouroboros-network-protocols:testlib` - a public testing library * `ouroboros-network-protocols:test` - the testing component
* `ouroboros-network-mock` contains a testing chain. * `ouroboros-network-api` contains shared api between various `ouroboros-network*` packages and the `ouroboros-consensus` package.
…ork` This way `ouroboros-network-protocols` does not contain `ouroboros-network-framework` as its transitive dependency.
63ea756
to
c907007
Compare
It's no longer used and a bit outdated.
c907007
to
12d8a1d
Compare
bors merge |
A refactorisation of
ouroboros-network
andouroboros-consensus
. It includes the following packages:ouroboros-network-api
- no other ouroboros depenenciesouroboros-network-framework
ouroboros-network-mock
- mock chainouroboros-network-protocols
- implementation of all (except Handshake) mini-protocols, also includes anouroboros-network-protocols:testlib
visible testing library.ouroboros-network
- peer selection & diffusionouroboros-consensus-diffusion
- the top level package which was created out ofouroboros-consensus