Created
May 21, 2021 03:43
-
-
Save ouoam/108a79ba415b9b3a243c9a4dbf1d2b91 to your computer and use it in GitHub Desktop.
Chia connect to all known nodes
This file contains hidden or 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
| $hosts = @() | |
| $hosts += "node.chia-th.com:8444" | |
| $hosts += "node.chia.net:8444" | |
| $hosts += "introducer-apne.chia.net:8444" | |
| $hosts += "introducer-apse.chia.net:8444" | |
| $hosts += "introducer-or.chia.net:8444" | |
| $hosts += "introducer-va.chia.net:8444" | |
| $hosts += "introducer-eu.chia.net:8444" | |
| $keva = Invoke-WebRequest -Uri "https://chia.keva.app/" | |
| $rows = @($keva.ParsedHtml.getElementsByTagName("table")[0].Rows) | |
| foreach($row in $rows) | |
| { | |
| if($row.height -eq 50) ## Header | |
| { | |
| continue | |
| } | |
| $cells = @($row.Cells) | |
| $hosts += ("" + $cells[0].InnerText).Trim() + ":" + ("" + $cells[1].InnerText).Trim() | |
| } | |
| $powerlayout = Invoke-WebRequest "https://chia.powerlayout.com/nodes?block_height=false" | ConvertFrom-Json | |
| $hosts += $powerlayout.nodes | |
| cd $env:userprofile\AppData\Local\Chia-Blockchain\app-1.1.5\resources\app.asar.unpacked\daemon\ | |
| foreach($h in $hosts) | |
| { | |
| .\chia show -a $h | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment