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]
|
|
|
|
name = "vulcanize_public"
|
|
|
|
hostname = "localhost"
|
|
|
|
port = 5432
|
|
|
|
user = "postgres"
|
|
|
|
|
|
|
|
[leveldb]
|
2020-08-18 00:52:17 +00:00
|
|
|
path = "/Users/user/Library/Ethereum/geth/chaindata"
|
|
|
|
ancient = "/Users/user/Library/Ethereum/geth/chaindata/ancient"
|
2020-07-15 04:43:11 +00:00
|
|
|
|
|
|
|
[snapshot]
|
2020-08-18 00:52:17 +00:00
|
|
|
blockHeight = 0
|
2020-07-15 04:43:11 +00:00
|
|
|
```
|