Last active
July 10, 2019 15:31
-
-
Save ZenGround0/6e2cbd41dd2cfa1bcc6f5d264cf24ec1 to your computer and use it in GitHub Desktop.
Rough filecoin power table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go-filecoin actor ls | jq 'select(.actorType == "MinerActor") | .address' | xargs -L1 go-filecoin miner power |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# power table printing utility for the fish shell | |
function power | |
# jq filters miner actors from actor ls | |
# jq selects address field from actor output | |
# xargs strips quotes | |
echo "#################FILECOIN POWER TABLE#################" | |
echo "------------------------------------------------------" | |
for x in (go-filecoin actor ls | jq 'select(.actorType == "MinerActor") | .address' | xargs -L1) | |
echo $x ":" (go-filecoin miner power "$x") | |
end | |
echo "------------------------------------------------------" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example output: