-
Notifications
You must be signed in to change notification settings - Fork 77
/
index.md
54 lines (41 loc) · 2.26 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: "Lightweight Filecoin Chain Snapshots"
description: "Lightweight Filecoin chain snapshots are a segment of the Filecoin chain exported to a Content Addressable aRchives (CAR) file."
date: 2022-03-17T12:00:35+01:00
lastmod: 2021-11-16T12:00:35+01:00
draft: false
menu:
kb:
parent: "browse"
toc: false
pinned: false
types: ["article"]
areas: ["chain"]
---
Lightweight Filecoin chain snapshots are a segment of the Filecoin chain exported to a Content Addressable aRchives (CAR) file. They contain a chain segment large enough to allow the Filecoin network consensus protocol to apply messages successfully (2x+ finality; 1 for consensus; 1 for reorgs). Lightweight snapshots become less useful the older they are (as the chain progresses). The goal of providing lightweight snapshots is to allow users to join the network as quickly as possible.
{{< alert icon="warning" >}}
These lightweight snapshots do not contain any message receipts.
{{< /alert >}}
## Snapshot Links
The snapshot links issue a `302 Found` redirecting to the latest snapshot file. Snapshots files are named in the format of `<height>_YYYY_MM_DDTHH_MM_SSZ.car.zst` where the date & time is the chain timestamp for the given height. The height is the highest TipSet height in the chain.
These links can be used directly with Lotus `--chain-import` flag, the redirect will be followed.
## Verify a snapshot
Every snapshot has a sibling sha256sum file that can be downloaded to verify the snapshot before use.
```shell with-output
curl -I https://snapshots.mainnet.filops.net/minimal/latest
```
```
HTTP/1.1 302 Found
Date: Tue, 16 May 2023 14:58:50 GMT
Location: https://pub-fd31751bcb69400eb39e694385c19457.r2.dev/minimal/2864400_2023_05_16T12_00_00Z.car.zst
Connection: keep-alive
```
You can then verify the snapshot:
```shell with-output
curl https://pub-fd31751bcb69400eb39e694385c19457.r2.dev/minimal/2864400_2023_05_16T12_00_00Z.sha256sum
```
```
052fa682d62d835360fe5892a82a2f923464193e37a162d3c1a0849f63d669f6 *2864400_2023_05_16T12_00_00Z.car.zst
```
## Feedback & Issues
If you run into issues with the snapshots provided or have feedback you can open a discussion topic on the [Filecoin Chain Archiver repository](https://github.com/filecoin-project/filecoin-chain-archiver/discussions/new?category=feedback).