Skip to content

Latest commit

 

History

History
 
 

blocktime

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Blocktime

blocktime is a simple tool to analyze block production rates of a chain. It scrapes the latest headers through the RPC endpoint of a provided node and calculates the average, min, max and standard deviation of the intervals between the last n blocks (default: 100).

To read up on starting a node and exposing the RPC endpoint go to the docs here

Usage

To compile the binary, run either go install or go build. The binary can then be used as follows:

./blocktime <node_rpc> [query_range]

As an example

$ ./blocktime http://localhost:26657 1000

Chain: mocha-3
Block Time (from 55775 to 56775):
	Average: 12.79s
	Min: 1.00s
	Max: 25.36s
	Standard Deviation: 6.279s