package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-shell-libs.shell-services/Tezos_shell_services/History_mode/index.html
Module Tezos_shell_services.History_mode
Source
History modes for the chain history storage
History modes allow a node to require less disk storage. Indeed, depending on the chosen history mode, some parts of the complete chain history can be deleted as they are not required anymore. Three history modes are provided:
- Full mode (default mode): The node stores the minimal data since the genesis required to reconstruct (or 'replay') the complete chain's ledger state.
- Rolling mode: This is the lightest mode as it only maintains a minimal rolling fragment of the chain data so the node can still validate new blocks and synchronize with the head.
- Archive: This is the heaviest mode as it keeps the whole chain data to be able to query any information stored on the chain since the genesis. It is particularly suitable for indexers or block explorers.
The type for defining the number of additional cycles to preserve.
The type for defining an history mode.
The default value for the number of additional cycles to preserve.
The default rolling history mode value. Based on default_additional_cycles
.
Returns true if the modes and the number of additional cycles are equal.
Returns true if the modes are equal. The number of additional cycles are not checked.
The module for handling legacy history modes. It is only used for legacy support, see Tezos_store.Legacy
and Tezos_store.Snapshots
.