Mithril Prototypes Cardano Node Recovery for Leios

The snapshot prototype adds a database that Cardano nodes will need to resume syncing under Leios. A separate change extends Mithril’s transaction proofs to cover Dijkstra’s nested transactions.

By SongMarketCap

Updated:

Cardano News - Mithril Prototypes Cardano Node Recovery for Leios

The Mithril team is prototyping a new Cardano database snapshot that includes the data a node will need to resume syncing under Ouroboros Leios. In a November 25 development update, Mithril technical lead Jean-Philippe Raynaud also reported progress on Dijkstra transaction certification and the completion of two features for downloading snapshots over IPFS.

Why Leios Changes What a Snapshot Needs

A Mithril snapshot gives a Cardano node a verified starting point for synchronization, so it can pick up from a recent point in the chain. Leios changes what the node needs at that starting point. It introduces endorser blocks, which carry transactions and can be certified by blocks on the main chain. Data for those certified transactions is stored in a separate SQLite database called leios.imm.db. According to Mithril’s technical proposal, a node restored from the existing snapshot format would stop syncing when it reached the first block that needed data from that database.

The draft implementation adds a copy of the Leios database to the signed archive that accompanies the snapshot. Mithril’s client restores it alongside the other files. The end-to-end test checks that the restored database contains the data for every endorser block certified in the portion of the chain covered by the snapshot. The team is also preparing a Mithril environment on MusashiNet, Cardano’s Leios test network.

Dijkstra Extends Transaction Proofs to Nested Transactions

Dijkstra introduces a new block format and allows a Cardano transaction to contain other transactions with their own identifiers. Mithril’s current block scanner records the identifiers of top-level transactions. The Dijkstra prototype extends the scanner to capture the nested identifiers as well, so a client can verify that an individual nested transaction was included in the chain.

On November 25, the team merged the infrastructure changes for dev-dijkstranet, a Mithril environment that uses Cardano Node 11.2 on the Dijkstra test network. It is designed to test the full certification process, from stake pool operators signing the data to the client verifying the resulting certificate, before Leios is enabled.

[NEWSBREAK]

Mithril Automates IPFS Snapshot Downloads

The team completed a download mode that lets the Mithril command-line client configure and run its own temporary Kubo node, the software it uses to connect to IPFS. The client stops the node once the download is complete. Operators can still connect to their own Kubo node, and Mithril now supports token authentication for its control interface.

In a test on testing-preview, the team verified a snapshot of about 15.5 GB using both download paths. The cloud download took 475 seconds, while the managed Kubo download took 481 seconds. As the team prepares Mithril distribution 2650, it is assessing how download times would change if short-lived Kubo nodes also shared the data they downloaded with other IPFS users.