Skip to content

Replay from genesis using a mithril snapshot #953

Description

@fallen-icarus

I am trying to use dolos to build up a local database of information relevant to a typical wallet user:

  1. current UTxOs
  2. current account balance
  3. tx history

Dolos currently supports three sync options:

  1. Mithril Snapshot
  2. Dolos Snapshot
  3. Relay Chain-Sync

But the only way to get the full tx history into my local database is with the Relay Chain-Sync because it is the only option to get Dolos to stream the txs from genesis. AFAIU the Mithril Snapshot has the full history and it has already been validated. So theoretically, I should be able to replay the history from genesis using a Mithril Snapshot but Dolos currently does not support this.

I know Dolos prunes its own database on regular intervals and this is fine. All I'm asking is that I can stream the history from a mithril snapshot and skip validation since I'm trusting the mithril signatures. This would allow a wallet to bootstrap the user's full information using dolos and just a mithril snapshot. By skipping the network fetch and validation steps, the replay using a mithril snapshot should be orders of magnitude faster than the Chain-Sync approach.


If this is already supported, can you point me in the right direction? I can't seem to get it to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:bootstrapInit, Mithril snapshot, Docker, index creationdocumentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions