Guess the Mithril signer and DMQ node parameters for the `mithril-setup` command

Aperta
#3,678 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
blockchain

Direzione di ricerca

Start by locating the mithril-setup command, its build script, and the repository’s embedded Mithril network values. Then trace how the setup discovers Cardano node facts and selects signer and DMQ configuration; the issue leaves defaults and the guessing interface open for design. Done means the binary can propose the listed parameters without downloading values at runtime.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature :rocket:

Why

The setup of the Mithril signer and of the DMQ node must propose their configuration without asking the operator to look up values that depend on the Cardano network and that the Mithril repository already holds.

What

Guess the parameters of the Mithril signer and of the DMQ node from the discovered Cardano node facts and from the Cardano network, using only values embedded in the setup binary from the information available in the repository (no external download).

How

  • Embed in the setup binary the values of each Mithril network that the repository holds, so that no value is downloaded at runtime (build script)
  • Guess the parameters of the Mithril signer:
    • NETWORK and NETWORK_MAGIC
    • DB_DIRECTORY
    • AGGREGATOR_ENDPOINT
    • ERA_READER_ADAPTER_TYPE and ERA_READER_ADAPTER_PARAMS
    • PROTOCOL_CONFIGURATION_READER_ADAPTER_CONFIG
    • DATA_STORES_DIRECTORY, STORE_RETENTION_LIMIT and RUN_INTERVAL? (or maybe they are default values of the fields)
    • ENABLE_METRICS_SERVER, METRICS_SERVER_IP and METRICS_SERVER_PORT? (or maybe they are default values of the fields)
  • Guess the parameters of the DMQ node:
    • NetworkMagic
    • PeerSharing
  • Design the guessing behind a trait (guessing depends on the Cardano network), whose return type is either an associated type or a reusable type (e.g. a map of parameter names to text values) (depends on the prototype outcome)
Lingua principale
Rust
Stelle
155
Fork
52
Merge medio
2g 15h
PR unite (30g)
39

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntersectMBO/mithril

Tutte le issue di IntersectMBO/mithril

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.