<p>A mithril snapshot currently contains the whole persisted DB of a cardano-node. As said by @roy-nakakawa, it's tied to a Cardano epoch because Mithril relies on the epoch's stake distribution for signing the snapshot, but there won't be a single snapshot per epoch. It's still a parameter to be tuned but the idea is to balance the resources needed to produce signatures, aggregate them and build snapshot with the amount of work needed to catch-up in between snapshots, to decide on the frequency of snapshot generation.</p>
<p>To address your questions:</p>
<blockquote>
<p>If after the snapshot is created, I make a transaction, will the transaction be updated on my wallet?</p>
</blockquote>
<p>It would depend on the specifics of your wallet, but the idea is that a (heavyweight at least) wallet would start with a snapshot taken at some point in the past, and then &quot;follow the chain&quot; from that point on, a process that should be pretty fast (eg. seconds or minutes) to reach the tip of the chain.</p>
<p>Once there, it will proceed as normal and your transaction will certainly be reflected in your wallet's state and on-chain as soon as possible, eg. pending confirmation.</p>
<blockquote>
<p>Or do I have to wait 5 days for the next snapshot of my transaction to be updated?</p>
</blockquote>
<p>It's not clear what you mean by &quot;next snapshot of my transaction&quot; but no, you won't have to wait for 5 days as your wallet will have caught up before.</p>
<p>What I have said is true for the current state of Mithril which is geared towards heavyweight wallet as we are still figuring out how to best fulfil lightwallet's needs. A light wallet does not have direct access to a cardano-node and relies on a third party to provide a trusted view of the chain, and the current idea we are exploring is to find a way to provide a fragment of the snapshotted state, and/or sign multiple things.</p>

CC BY-SA 4.0
2023-11-09T07:52:12.753Z
What is the mechanism of heavyweight wallet follow the chain after taking snapshot? You mean we have to rely on another sever?
Quang Daniel
CC BY-SA 4.0
2024-01-07T08:55:40.677Z
Sorry for taking so long to respond @QuangDaniel. The snapshot is used to prime a Cardano-node, then after it's bootstrapped, it follows the chain normally, connecting to other nodes in the network and pulling new blocks as they are diffused across it.
insitu
CC BY-SA 4.0
2022-08-15T07:02:41.180Z
2022-08-15T07:02:41.180Z
insitu
<p>Mithril snapshots will be generated more often than Cardano epochs.</p>

CC BY-SA 4.0
2022-08-14T01:16:51.897Z
How often? What if I make a transaction 1s after snapshot?
Quang Daniel
CC BY-SA 4.0
2022-08-12T15:42:42.790Z
2022-08-12T15:42:42.790Z
Roy Nakakawa
<p>According to what I read in the Mithril docs. The snapshots will be saved in Mithril Aggreagtor for each epoch (This means 1 snapshot will be created every 5 days). Light wallets can then download this snapshot to see their transaction history without downloading the full node.
But snapshots only provide pre-snapshot transaction information. If after the snapshot is created, I make a transaction, will the transaction be updated on my wallet? Or do I have to wait 5 days for the next snapshot of my transaction to be updated?</p>

<wallet><cardano-node><node>
How can client update transaction after taking snapshot of Mithril?
# How can client update transaction after taking snapshot of Mithril?

(Asked by: username_0 on 2022-08-09)

According to what I read in the Mithril docs. The snapshots will be saved in Mithril Aggreagtor for each epoch (This means 1 snapshot will be created every 5 days). Light wallets can then download this snapshot to see their transaction history without downloading the full node.
But snapshots only provide pre-snapshot transaction information. If after the snapshot is created, I make a transaction, will the transaction be updated on my wallet? Or do I have to wait 5 days for the next snapshot of my transaction to be updated?

**Tags:** wallet, cardano-node, node

---

## 2 answers

### Answer by username_1 on 2022-08-15. Score: 2

A mithril snapshot currently contains the whole persisted DB of a cardano-node. As said by @roy-nakakawa, it's tied to a Cardano epoch because Mithril relies on the epoch's stake distribution for signing the snapshot, but there won't be a single snapshot per epoch. It's still a parameter to be tuned but the idea is to balance the resources needed to produce signatures, aggregate them and build snapshot with the amount of work needed to catch-up in between snapshots, to decide on the frequency of snapshot generation.

To address your questions:

> If after the snapshot is created, I make a transaction, will the transaction be updated on my wallet?

It would depend on the specifics of your wallet, but the idea is that a (heavyweight at least) wallet would start with a snapshot taken at some point in the past, and then "follow the chain" from that point on, a process that should be pretty fast (eg. seconds or minutes) to reach the tip of the chain.

Once there, it will proceed as normal and your transaction will certainly be reflected in your wallet's state and on-chain as soon as possible, eg. pending confirmation.

> Or do I have to wait 5 days for the next snapshot of my transaction to be updated?

It's not clear what you mean by "next snapshot of my transaction" but no, you won't have to wait for 5 days as your wallet will have caught up before.

What I have said is true for the current state of Mithril which is geared towards heavyweight wallet as we are still figuring out how to best fulfil lightwallet's needs. A light wallet does not have direct access to a cardano-node and relies on a third party to provide a trusted view of the chain, and the current idea we are exploring is to find a way to provide a fragment of the snapshotted state, and/or sign multiple things.

> **Comments:**
> **username_0**: What is the mechanism of heavyweight wallet follow the chain after taking snapshot? You mean we have to rely on another sever?  
> **username_1**: Sorry for taking so long to respond @QuangDaniel. The snapshot is used to prime a Cardano-node, then after it's bootstrapped, it follows the chain normally, connecting to other nodes in the network and pulling new blocks as they are diffused across it.  

---

### Answer by username_2 on 2022-08-12. Score: 1

Mithril snapshots will be generated more often than Cardano epochs.

> **Comments:**
> **username_0**: How often? What if I make a transaction 1s after snapshot?  

---

