https://github.com/rpcpool/poh-check-car
Validate PoH from an old-faithful CAR file.
https://github.com/rpcpool/poh-check-car
Last synced: 10 months ago
JSON representation
Validate PoH from an old-faithful CAR file.
- Host: GitHub
- URL: https://github.com/rpcpool/poh-check-car
- Owner: rpcpool
- Created: 2023-10-19T11:54:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-07T12:35:36.000Z (11 months ago)
- Last Synced: 2025-05-11T06:56:42.049Z (11 months ago)
- Language: Go
- Homepage:
- Size: 131 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poh-check-car
Validate PoH (proof of history) on the data in an epoch CAR file.
## Usage
Automatically find all the limits and assertions via RPC:
```bash
$ poh-check-car \
--workers=12 \
--epoch=0 \
--car=/media/runner/solana-2/cars/epoch-0.car
```
OR provide the limits and assertions manually:
```bash
$ poh-check-car \
--workers=12 \
--epoch=0 \
--car=/media/laptop/solana-history/cars/epoch-0.car \
--prev-hash=5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \
--first-slot=0 \
--first-hash=4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZAMdL4VZHirAn \
--last-slot=431999 \
--last-hash=4WxiJQL77oMLb8mkQ3vQynd6DVhhqttdZkC1gQKy1Dcy
```
NOTE: for epoch 0, the `--prev-hash` is the genesis hash.
```bash
$ curl https://api.mainnet-beta.solana.com \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1, "method":"getGenesisHash"}'
{"jsonrpc":"2.0","result":"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d","id":1}
```
If you don't want to see the progress bar, use `--no-progress`.