-
Notifications
You must be signed in to change notification settings - Fork 33
[Peras 4] Add ObjectDiffusion and PerasCert diffusion (instance of ObjectDiffusion)
#1679
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
base: main
Are you sure you want to change the base?
Conversation
PerasCert diffusion (instace of ObjectDiffusion)PerasCert diffusion (instance of ObjectDiffusion)
PerasCert diffusion (instance of ObjectDiffusion)PerasCert diffusion (instance of ObjectDiffusion)
80d3c69 to
f88b3ae
Compare
dca0315 to
d7c3c64
Compare
37a9f85 to
222f4be
Compare
d7c3c64 to
f1158c0
Compare
222f4be to
d47c331
Compare
PerasCert diffusion (instance of ObjectDiffusion)PerasCert diffusion (instance of ObjectDiffusion)
d47c331 to
918307c
Compare
f1158c0 to
90131b2
Compare
8aba6fc to
8b987f6
Compare
328b50a to
1018f6e
Compare
f8083cc to
8a88eb7
Compare
...onsensus/src/ouroboros-consensus/Ouroboros/Consensus/MiniProtocol/ObjectDiffusion/Inbound.hs
Outdated
Show resolved
Hide resolved
...onsensus/src/ouroboros-consensus/Ouroboros/Consensus/MiniProtocol/ObjectDiffusion/Inbound.hs
Outdated
Show resolved
Hide resolved
...onsensus/src/ouroboros-consensus/Ouroboros/Consensus/MiniProtocol/ObjectDiffusion/Inbound.hs
Show resolved
Hide resolved
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.
LGTM, minor comments only.
...sensus-diffusion/src/ouroboros-consensus-diffusion/Ouroboros/Consensus/Network/NodeToNode.hs
Show resolved
Hide resolved
|
@amesgen TX-submission V1 had initially hidden a "ensure no thunk" logic in the
|
Also use defaultMiniProtocolParameters instead of hardcoded value in unstable-diffusion-testlib to account for newly defined parameters in the new `ouroboros-network` version. Also integrate `NodeToNodeV_16`. Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]> Co-authored-by: Nicolas "Niols" Jeannerod <[email protected]>
8a88eb7 to
d9c165b
Compare
|
I think I have adressed all comments from @agustinmista and @amesgen,I guess we are ready for a client review now? |
...onsensus/src/ouroboros-consensus/Ouroboros/Consensus/MiniProtocol/ObjectDiffusion/Inbound.hs
Outdated
Show resolved
Hide resolved
...onsensus/src/ouroboros-consensus/Ouroboros/Consensus/MiniProtocol/ObjectDiffusion/Inbound.hs
Outdated
Show resolved
Hide resolved
...onsensus/src/ouroboros-consensus/Ouroboros/Consensus/MiniProtocol/ObjectDiffusion/Inbound.hs
Outdated
Show resolved
Hide resolved
…eader,Writer}` API Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]> Co-authored-by: Nicolas "Niols" Jeannerod <[email protected]>
Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]> Co-authored-by: Nicolas "Niols" Jeannerod <[email protected]>
…fusion Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]> Co-authored-by: Nicolas "Niols" Jeannerod <[email protected]>
Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]> Co-authored-by: Nicolas "Niols" Jeannerod <[email protected]>
Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]> Co-authored-by: Nicolas "Niols" Jeannerod <[email protected]>
Brings in cardano-base and propagates a set of `CardanoFeatureFlag`s from the top-level `RunNodeArgs` down to the `NodeKernelArgs`. This is currently needed by an upcoming PR to the GSM to distinguish whether having an established PerasCertDiffusion connection with a given peer is necessary or not when trying to decide if such peer is idling.
Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]> Co-authored-by: Nicolas "Niols" Jeannerod <[email protected]>
d9c165b to
bef68f5
Compare
This pull request introduces support for the ObjectDiffusion mini-protocol, required for Peras (for certificates and votes diffusion). It also plugs the PerasCertDiffusion (instance of ObjectDiffusion) mini-protocol in the networking layer.
This PR depends on an updated version of
ouroboros-network, see IntersectMBO/ouroboros-network#5202 and https://github.com/IntersectMBO/ouroboros-network/tree/peras-staging/pr-5202-v2Peras ObjectDiffusion Mini-protocol:
Ouroboros.Consensus.MiniProtocol.ObjectDiffusion{.Inbound,.Outbound}with implementations of the ObjectDiffusion protocol (quite similar/inspired from TX-submission, except that client = inbound, server = outbound)Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.ObjectPool.APIdefiningObjectPool{Reader,Writer}interfaces, through which ObjectDiffusion accesses/stores the objects to send/that have been received.Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.PerasCertandOuroboros.Consensus.MiniProtocol.ObjectDiffusion.ObjectPool.PerasCertcontaining definitions specific toPerasCertdiffusion through the ObjectDiffusion mini-protocolOuroboros.Consensus.Node.Serialisationto add CBOR serialisation (SerialiseNodeToNode) forPoint blk,Tip blk, andPerasCert blkOuroboros.Consensus{.Node,.Node.Tracer,.Network.NodeToNode}to wire-in PerasCertDiffusion similarly to other mini-protocols (e.g. TX-submission)NodeKernelArgs(see Propagate feature flags down to NodeKernelArgs #1706)Tests and benchmarks
Added module
Test.Consensus.MiniProtocol.ObjectDiffusion.Smokewith smoke test for the general ObjectDiffusion mini-protocol (using mock objects)Added module
Test.Consensus.MiniProtocol.ObjectDiffusion.PerasCert.Smokewith smoke test specific toPerasCertdiffusion through ObjectDiffusionUpdates
Test.ThreadNet.Networkinunstable-diffusion-testlibaccordingly to the changes made inOuroboros.Consensus.Network.NodeToNodeNetwork Protocol Version Updates:
ouroboros-networkrev8dfff7b8916f7a56b2a3773438d5e5530c780710(c.f. [WIP] Add ObjectDiffusion miniprotocol for Peras cert and vote diffusion ouroboros-network#5181) through source-repository-package directiveouroboros-consensusforNodeToNodeV_16