Skip to content

Commit d4bdec4

Browse files
committed
contrib: Added tool for fetching nodes list
1 parent 1c0e801 commit d4bdec4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

contrib/seeds/getseeds.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python3
2+
# Copyright (c) 2019 The MicroBitcoin Core developers
3+
# Distributed under the MIT software license, see the accompanying
4+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5+
6+
import requests
7+
data = requests.get('http://sman.pw/nodes/peers.json').json()
8+
for node in data:
9+
print(node + ':6502')

0 commit comments

Comments
 (0)