This tool is used to calculate the market share of different filecoin implementations. For more detail.
go build
Run with:
./power-stats --node=ws://<ip>:<port>/rpc/v1 \
--token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...0UY2Zuf0OGyuLLFXttOwb2EPSyK1745m2qe41EOCN1Q
The output look like this:
Total 603988 miners on chain
It may take a few minutes ...
Venus QAP: 1.07 EiB
Lotus QAP: 8.606 EiB
Proportion of Venus: 11.061%
The results can be different between different machine, because the connection to other sp will be affected by network environment.
You can set log level or set concurrency by cli flag. Run ./power-stats --help
for more detail. And you will get more info about per miner to set log level to info
or debug
.