Skip to content

Instantly share code, notes, and snippets.

@ZenGround0
Last active July 10, 2019 15:31
Show Gist options
  • Save ZenGround0/6e2cbd41dd2cfa1bcc6f5d264cf24ec1 to your computer and use it in GitHub Desktop.
Save ZenGround0/6e2cbd41dd2cfa1bcc6f5d264cf24ec1 to your computer and use it in GitHub Desktop.
Rough filecoin power table
go-filecoin actor ls | jq 'select(.actorType == "MinerActor") | .address' | xargs -L1 go-filecoin miner power
# 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
@ZenGround0
Copy link
Author

Example output:

#################FILECOIN POWER TABLE#################
------------------------------------------------------
t2qrd76letmrept7rsvpkstsv2dqtwpsc3xsizjdy : 0 / 18522046464
t2hfnevtze3e7236w6d76rupbcuzqqzfbrzl3mmny : 0 / 18522046464
t2z6gzvtlvgu6dwudfpfsms26tz7z7bsmmcvmvvci : 0 / 18522046464
t2whsstbi4upn5keealn5nesjlrjh2dzx5yijs3tq : 268435456 / 18522046464
t2nzuzumd6qwdtjr5chdlljhz7sp7sgyfth5ypvua : 0 / 18522046464
t2isizgv7nnq4kgdhmi3wxdwpjyaayhf2fssg2moi : 0 / 18522046464
t2e7pxcolhq4rsmspa7dar7rlabstugdbkzdsaysa : 268435456 / 18522046464
t2uaf2umu6rnc5sgfv65zm7tkkqdaouf3bxphg2cq : 0 / 18522046464
t2bugyhejigfa6jigtk34rhb5ft2eckcg32xjjz4y : 0 / 18522046464
t2enibhyg2rkcds2ge53czn746pu5e5kuliigq2oq : 0 / 18522046464
t2hzdqk3pevlesfk5uesr3iisrpikuzvwtjrbmpci : 0 / 18522046464
t2vkisj3cuhq7ue3yzfvx3tskrcekyjk3lxlmtmpi : 0 / 18522046464
t2bh6t7q6nmvhzv3snyjblr7pg2o47nu6gaxmg7oi : 0 / 18522046464
t2p7e4bhse6kwpnb57qur6ntr2yt7y5fzqnsa32iq : 268435456 / 18522046464
t2w6y4ytieegrvnhw6shohifbg4wsrc2kanfyuy6y : 0 / 18522046464
t2ljcgy5bn7uvv23u7cg5pfudtcllav2r22ionzpy : 268435456 / 18522046464
t2dhld5yy6jc6ljrgnd3dm4fatwyjhtknltezbrma : 0 / 18522046464
t2nvgobhnpmjkwxvwccykfxhs6xemqeqeqilorspa : 0 / 18522046464
t2pejsbzu4ovqpcrn3egsnstgji24z4cu54lf3sjy : 268435456 / 18522046464
t23dzssnmycjxcto3hmtpcssqcl6uq5iff6jlerji : 268435456 / 18522046464
t2sydxduhohojjysumptw77t3grzpbjowsigio4wy : 268435456 / 18522046464
t2lxuighwflwe535iv6snmwcy7dovywb4kqprjfni : 268435456 / 18522046464
t273ke4dc4szpv736gxumcvetxn3hxe53xe6kldni : 0 / 18522046464
t2x5wzzxsyz56khbdr2on3wzc2kkc2csywhy3rmua : 0 / 18522046464
t23t35xkzjwqeoypbct7xuztsaa6gcxrraiv7cgei : 0 / 18522046464
t225rfkb2kekjcsjcrfzlvqxvwnqqfxydvvxtzhaa : 0 / 18522046464
t22yyh47qbjhqchci5g4eb53q2avnrrhoe4r62khy : 0 / 18522046464
t2egeeajn43asmweinm54wvtdvdtr55wtdd5dggga : 0 / 18522046464
t227hiwimoy5cfireplomnvkphx5skgzenyeeid5y : 0 / 18522046464
------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment