Validate PoH (proof of history) on the data in an epoch CAR file.
Automatically find all the limits and assertions via RPC:
$ poh-check-car \
--workers=12 \
--epoch=0 \
--car=/media/runner/solana-2/cars/epoch-0.carOR provide the limits and assertions manually:
$ 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=4WxiJQL77oMLb8mkQ3vQynd6DVhhqttdZkC1gQKy1DcyNOTE: for epoch 0, the --prev-hash is the genesis hash.
$ 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.