2020-06-30 16:49:51 +00:00
|
|
|
# eth-pg-ipfs-state-snapshot
|
2020-07-01 19:16:21 +00:00
|
|
|
|
2020-07-13 11:20:03 +00:00
|
|
|
> Tool for extracting the entire Ethereum state at a particular block height from leveldb into Postgres-backed IPFS
|
2020-07-01 19:16:21 +00:00
|
|
|
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/vulcanize/eth-pg-ipfs-state-snapshot)](https://goreportcard.com/report/github.com/vulcanize/eth-pg-ipfs-state-snapshot)
|
2020-07-15 04:43:11 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
./eth-pg-ipfs-state-snapshot stateSnapshot --config={path to toml config file}
|
|
|
|
|
|
|
|
Config format:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[database]
|
2020-08-20 10:25:11 +00:00
|
|
|
name = "vulcanize_public"
|
|
|
|
hostname = "localhost"
|
|
|
|
port = 5432
|
|
|
|
user = "postgres"
|
2020-07-15 04:43:11 +00:00
|
|
|
|
|
|
|
[leveldb]
|
|
|
|
path = "/Users/user/Library/Ethereum/geth/chaindata"
|
2020-08-20 10:25:11 +00:00
|
|
|
# path for geth's "freezer" archive
|
|
|
|
ancient = "/Users/user/Library/Ethereum/geth/chaindata"
|
2020-07-15 04:43:11 +00:00
|
|
|
|
|
|
|
[snapshot]
|
|
|
|
blockHeight = 0
|
2020-08-20 10:25:11 +00:00
|
|
|
```
|