Skip to content

rpcpool/poh-check-car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

$ poh-check-car \
	--workers=12 \
	--epoch=0 \
	--car=/media/runner/solana-2/cars/epoch-0.car

OR 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=4WxiJQL77oMLb8mkQ3vQynd6DVhhqttdZkC1gQKy1Dcy

NOTE: 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.

About

Validate PoH from an old-faithful CAR file.

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •