wenupgrade is a tool that displays an approximate date on when some block would be generated. Can be useful if you're running a fullnode and want to check how much time left till the specific block (for example, for calculating time till the chain halts to upgrade).
Download the latest release from the releases page. After that, you should unzip it and you are ready to go:
./wenupgrade 1337
It queries the latest block and the block generated 100 blocks earlier, calculates the average block time, then displays the approximate date the specified block would be generated.
You can pass the artuments to the executable file to configure it. Here is the parameters list:
--tendermint-rpc
- the tendermint node URL. Defaults tolocalhost:26657
--log-devel
- logger level. Defaults toinfo
. You can set it todebug
to make it more verbose.