ipld-eth-state-snapshot/README.md

36 lines
1.4 KiB
Markdown
Raw Normal View History

# ipld-eth-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/ipld-eth-state-snapshot)](https://goreportcard.com/report/github.com/vulcanize/ipld-eth-state-snapshot)
2020-07-15 04:43:11 +00:00
## Usage
./ipld-eth-state-snapshot stateSnapshot --config={path to toml config file}
### Config
2020-07-15 04:43:11 +00:00
Config format:
```toml
[snapshot]
mode = "file" # indicates output mode ("postgres" or "file")
workers = 4 # degree of concurrency, the state trie is subdivided into sectiosn that are traversed and processed concurrently
blockHeight = -1 # blockheight to perform the snapshot at (-1 indicates to use the latest blockheight found in leveldb)
recoveryFile = "recovery_file" # specifies a file to output recovery information on error or premature closure
2020-07-15 04:43:11 +00:00
[leveldb]
path = "/Users/user/Library/Ethereum/geth/chaindata" # path to geth leveldb
ancient = "/Users/user/Library/Ethereum/geth/chaindata/ancient" # path to geth ancient database
2020-07-15 04:43:11 +00:00
[database]
name = "vulcanize_public" # postgres database name
hostname = "localhost" # postgres host
port = 5432 # postgres port
user = "postgres" # postgres user
password = "" # postgres password
[file]
outputDir = "output_dir/" # when operating in 'file' output mode, this is the directory the files are written to
2020-08-20 10:25:11 +00:00
```