filecoin-chain-archiver

module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0, MIT

README

Filecoin Chain Archiver

Filecoin chain archiver is a software tool for creating chain exports / snapshots using the lotus filecoin node.

Background

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.

Building & Dependencies

  • Go 1.19 or higher
make all

Usage

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

Contributing

PRs accepted.

License

Dual-licensed under MIT + Apache 2.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL