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

Mithril Design Investigation #4929

Open
coot opened this issue Aug 12, 2024 · 3 comments
Open

Mithril Design Investigation #4929

coot opened this issue Aug 12, 2024 · 3 comments
Assignees
Labels
high-priority high priority issues / PRs mithril Things related to Mithril.

Comments

@coot
Copy link
Contributor

coot commented Aug 12, 2024

Recently, we co-authored a CIP proposal, in particular this section.

We need to investigate in depth how the ouroboros-network needs to adapt to the proposed design. In particular:

  • what is required to run a standalone diffusion which only has access ledger through n2c protocol? This includes what information we need from the ledger, how it can be obtained through n2c protocol, what information is needed from consensus or other places and whether we need it for mithril nodes
  • Do we need to have the notion of big ledger peers for standalone Mithril nodes (I think we do, but it would be good to analyse why it's helpful in that setup)?
  • Do we need/want to have the notion of bootstrap peeres for mithril nodes - we probably don't, if that's the case then how can we design outbound-governor for both cases: cardano-node and mithril-node.
  • How to do churn, which will require new metrics to optimise the network graph.
  • We don't need to have BlockFetchConsensusInterface, which includes readFetchMode and is used by outbound-governor.
  • Similarly, we don't need LedgerPeerJudgement - how can we accommodate that in an elegant way

The above list is not exhaustive. I expect that we will learn more in the process, especially about the relations between things that pull some APIs.

The outcome of such an analysis could be some pseudocode and a proposal on how we can adapt the ouroboros-network to elegantly use it for: cardano-node and mithril-node.

@coot coot added mithril Things related to Mithril. high-priority high priority issues / PRs labels Aug 12, 2024
@coot
Copy link
Contributor Author

coot commented Aug 13, 2024

How to do churn, which will require new metrics to optimise the network graph.

In this context the question is how to decouple metric used by churn, so it's passed via Ouroboros.Network.Diffusion.P2P.ArgumentsExtra

@coot
Copy link
Contributor Author

coot commented Aug 13, 2024

Let's also note that mithril-node will not use NonP2P diffusion, it will only support P2P diffusion.

@bolt12
Copy link
Contributor

bolt12 commented Oct 23, 2024

Please see #4987 (comment) where I have been working on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high-priority high priority issues / PRs mithril Things related to Mithril.
Projects
Status: In Review
Development

No branches or pull requests

2 participants