Snapshot Parameters
This module is responsible for reading and writing snapshots of the World State View.
TODO: explain the purpose of snapshots, file formats, etc
Wipe Snapshots
In case if something is wrong with the snapshots system, and you want to start from a blank page (in terms of snapshots), you could remove the directory specified by snapshot.store_path
.
snapshot.mode
Specifies the mode the Snapshot system functions in.
- Type: String
- Possible Values:
normal
: Iroha creates snapshots with a period specified bysnapshot.create_every
. On startup, Iroha reads an existing snapshot (if any) and verifies that it is up-to-date with the blocks storage.read-only
: Similar tonormal
but Iroha doesn't create any snapshots.disabled
: Iroha neither creates new snapshots nor reads an existing one on startup.
- Default:
normal
Example:
toml
[snapshot]
mode = "normal"
[snapshot]
mode = "normal"
snapshot.create_every
- Type: String or Number, Duration
- Default: 1 minute
Frequency of making snapshots
Example:
toml
[snapshot]
create_every = "1 minute"
[snapshot]
create_every = "1 minute"
snapshot.store_path
- Type: String
- Default:
./storage/snapshot
Directory where to store snapshots
Example:
toml
[snapshot]
dir_path = "./storage/snapshot"
[snapshot]
dir_path = "./storage/snapshot"