Skip to content
Discussions/App Development/Canton Ledger PruningForum ↗

Canton Ledger Pruning

App Development5 posts718 views4 likesLast activity Apr 2022
ME
meetOP
Mar 2022

I see the command reference for ledger pruning here.

But where can I read details about the Pruning Service, details on the pruning process and how it works on Canton? Apologies if I’ve missed it, but couldn’t seem to find it in the Canton Admin APIs or the Operations Processes sections.

BE
bernhard
Mar 2022

Daml participant pruning is not Canton-specific and documented here.
Pruning API docs are linked from there.

RA
Ratko_Veprek
Mar 2022

@bernhard’s answer is correct. However, there are some Canton specific details documented in the Canton subset of the documentation. These have not yet been published with a stable release and are right now available in the dev preview documentation: Operational Processes — Canton 2.0.0-SNAPSHOT documentation

FA
fabio.tudone
Apr 2022

What happens if a sequencer is attempted to be pruned at a later point than a participant has caught up? Are there mechanisms to prevent that or must there be an agreed upon minimum participant availability? And how can a participant be recovered if it doesn’t comply?

MA
MatthiasSchmalz
Apr 2022

I think this is already answered here:
https://www.canton.io/docs/dev/user-manual/usermanual/console.html#sequencer-pruning-prune-1

I.e., by default the prune command will only prune events that have been read and acknowledged by all recipients. There are also variants of the prune command that allow you to forcefully prune a sequencer.

If you forcefully prune a sequencer and you happen to prune “too much” some participants will permanently be unable to connect to the sequencer.

← Back to Discussions