Filecoin chain archiver is a software tool for creating chain exports / snapshots using the lotus filecoin node.
Filecoin network 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.
make all
A running lotus node is required with automatic restarts and a jwt token with admin
privileges.
Setup Daemon
$ while true; do lotus daemon; done
Create Token
lotus auth create-token --perm admin | tr -d '\n' > token
cat > config.toml <<EOF
[[Nodes]]
Address = "/ip4/127.0.0.1/tcp/1234"
TokenPath = ./token"
EOF
./filecoin-chain-archiver nodelocker run
./filecoin-chain-archiver create --height <height> --discard
PRs accepted.
Dual-licensed under MIT + Apache 2.0