Expand description
Archives are key-value pairs encoded as CAR files. The key-value pairs represent a directed, acyclic graph (DAG). This graph is often a subset of a larger graph and references to missing keys are common.
Each graph contains blocks, messages, state trees, and miscellaneous data
such as compiled WASM code. The amount of data differs greatly in different
kinds of archives. While there are no fixed definitions, there are three
common kind of archives:
- A full archive contains a complete graph with no missing nodes. These archives are large (14 TiB for Filecoinβs mainnet) and only used in special situations.
- A lite-archive typically has roughly 3 million blocks, 2000 complete sets of state-roots, and 2000 sets of messages. These archives usually take up roughly 100 GiB.
- A diff-archive contains the subset of nodes that are not shared by two other archives. These archives are much smaller but can rarely be used on their own. They are typically merged with other archives before use.
The sub-commands in this module manipulate archive files without needing a running Forest-daemon or a separate database. Operations are carried out directly on CAR files.
Additional reading: crate::db::car::plain
StructsΒ§
EnumsΒ§
ConstantsΒ§
FunctionsΒ§
- bucket_
has_ πdiff_ snapshot - bucket_
has_ πlite_ snapshot - build_
output_ πpath - check_
aws_ πconfig - Check if the AWS CLI is installed and correctly configured.
- do_
export - epoch_
to_ πdate - export_
diff_ πsnapshot - Given a block store, export a diff snapshot for a given epoch.
- export_
lite_ πsnapshot - Given a block store, export a lite snapshot for a given epoch.
- format_
diff_ πsnapshot - format_
lite_ πsnapshot - list_
checkpoints π - merge_
f3_ πsnapshot - merge_
snapshots π - Merge a set of snapshots (diff snapshots or lite snapshots). The output snapshot links to the heaviest tipset in the input set.
- print_
checkpoints π - show_
tipset_ πdiff - Compute the tree of actor states for a given epoch and compare it to the expected result (as encoded in the blockchain). Differences are printed using the diff format (red for the blockchain state, green for the computed state).
- steps_
in_ πrange - sync_
bucket π - upload_
to_ πforest_ bucket - Use the AWS CLI to upload a snapshot file to the
S3bucket.