Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Mention reorgs in data-sync documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed May 13, 2019
1 parent d947c8f commit 679ec45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion documentation/data-syncing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ These commands are used to sync raw Ethereum data into Postgres, with varying le
Syncs block headers from a running Ethereum node into the VulcanizeDB table `headers`.
- Queries the Ethereum node using RPC calls.
- Validates headers from the last 15 blocks to ensure that data is up to date.
- Useful when you want a minimal baseline from which to track targeted data on the blockchain (e.g. individual smart contract storage values or event logs).
- Useful when you want a minimal baseline from which to track targeted data on the blockchain (e.g. individual smart
contract storage values or event logs).
- Handles chain reorgs by [validating the most recent block's hash](../pkg/history/header_validator.go). If the hash is
different from what we have already stored in the database, the header record will be updated.

#### Usage
- Run: `./vulcanizedb headerSync --config <config.toml> --starting-block-number <block-number>`
Expand All @@ -29,6 +32,8 @@ Syncs blocks, transactions, receipts and logs from a running Ethereum node into
- Queries the Ethereum node using RPC calls.
- Validates headers from the last 15 blocks to ensure that data is up to date.
- Useful when you want to maintain a broad cache of what's happening on the blockchain.
- Handles chain reorgs by [validating the most recent block's hash](../pkg/history/header_validator.go). If the hash is
different from what we have already stored in the database, the header record will be updated.

#### Usage
- Run `./vulcanizedb fullSync --config <config.toml> --starting-block-number <block-number>`
Expand Down

0 comments on commit 679ec45

Please sign in to comment.