[BTC-dev] How many nodes from hardcoded seedlist still alive? Not many.

Stanislav Datskovskiy stas at loper-os.org
Mon Feb 2 22:00:49 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Guess what:

##############################################################################
#!/usr/bin/python

import sys, re, struct, socket

def isnode(host):
    try:
        host_addr = socket.gethostbyname(host)
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        s.settimeout(1)
        s.connect((host_addr, 8333))
        s.close()
        return True
    except:
        return False


eat = open(sys.argv[1], 'r')
shit = open(sys.argv[2], 'w')

p = 0
f = 0

for q in re.findall(r'(0x\w\w\w\w\w\w\w\w),', eat.read(), re.DOTALL):
    ip = socket.inet_ntoa(struct.pack("<L", int(q, 16)))
    if isnode(ip):
        shit.write("PASS %s\n" % ip)
        p+=1
    else:
        shit.write("FAIL %s\n" % ip)
        f+=1

shit.write("\nPASS: %d; FAIL %d.\n" % (p, f))
##############################################################################

Take net.cpp from the 0.5.3.x tree.

./test_nodes.py net.cpp results.txt

and then go have some tea, come back, you get:

FAIL 71.211.155.149
FAIL 178.66.222.248
FAIL 24.5.188.115
FAIL 80.220.110.234
FAIL 77.10.176.33
FAIL 61.180.37.199
FAIL 77.70.101.214
FAIL 14.119.42.26
FAIL 70.57.201.39
FAIL 70.250.178.101
FAIL 85.226.10.184
FAIL 70.180.179.102
FAIL 62.122.135.177
FAIL 62.158.232.110
FAIL 64.91.23.195
FAIL 60.168.1.42
FAIL 58.54.177.149
FAIL 61.173.121.160
FAIL 31.128.202.230
FAIL 74.79.127.2
FAIL 58.240.247.52
FAIL 74.240.144.247
FAIL 31.128.202.22
FAIL 64.94.77.47
FAIL 64.94.77.58
FAIL 46.50.58.196
FAIL 83.151.21.200
FAIL 76.114.212.20
FAIL 24.161.25.121
FAIL 78.179.189.224
FAIL 46.107.161.104
FAIL 77.180.100.255
FAIL 91.17.153.96
FAIL 91.176.87.155
FAIL 173.180.209.123
FAIL 79.148.149.223
FAIL 61.183.210.41
FAIL 121.219.168.175
FAIL 65.186.71.226
FAIL 72.131.7.36
FAIL 60.240.34.247
FAIL 188.126.86.51
FAIL 212.78.230.172
FAIL 50.57.77.152
FAIL 85.78.243.181
FAIL 77.2.183.39
FAIL 71.146.87.148
FAIL 46.4.148.136
FAIL 76.211.87.147
FAIL 75.194.99.16
FAIL 177.40.162.202
FAIL 178.168.197.163
FAIL 87.72.198.93
FAIL 67.54.194.162
FAIL 84.154.54.168
FAIL 119.48.32.49
FAIL 92.124.112.0
FAIL 58.11.252.9
FAIL 46.158.46.39
FAIL 62.4.15.248
FAIL 62.202.73.148
FAIL 62.195.18.85
FAIL 85.181.6.209
FAIL 87.65.2.232
FAIL 41.236.136.226
FAIL 97.84.156.199
FAIL 50.57.182.175
FAIL 75.171.2.219
FAIL 119.39.81.14
FAIL 76.90.20.138
FAIL 79.255.1.178
FAIL 75.49.9.94
FAIL 205.251.155.205
FAIL 101.55.2.28
FAIL 92.231.148.67
FAIL 77.189.40.167
FAIL 82.21.51.101
FAIL 177.32.132.169
FAIL 89.245.236.137
FAIL 31.128.128.110
FAIL 24.241.4.244
FAIL 81.43.214.239
FAIL 70.131.145.5
FAIL 95.109.24.155
FAIL 70.171.171.172
FAIL 85.226.18.249
FAIL 98.234.136.193
FAIL 78.115.85.204
FAIL 77.6.104.198
FAIL 88.69.122.215
FAIL 85.28.32.70
FAIL 128.252.125.241
FAIL 46.47.20.247
FAIL 24.183.191.135
FAIL 178.79.165.138
FAIL 24.213.81.196
FAIL 49.136.174.196
FAIL 85.77.212.141
FAIL 108.32.189.91
FAIL 93.107.83.100
FAIL 96.126.102.92
FAIL 66.66.6.59
FAIL 66.58.150.254
FAIL 200.109.142.162
FAIL 74.96.169.232
FAIL 78.70.137.201
FAIL 89.166.36.209
FAIL 64.81.6.80
FAIL 94.254.77.164
FAIL 85.230.121.16
FAIL 213.134.185.63
FAIL 24.91.137.71
FAIL 173.228.60.125
FAIL 80.186.97.69
FAIL 98.236.110.41
FAIL 173.65.91.37
FAIL 201.94.211.174
FAIL 18.111.85.85
FAIL 77.21.211.199
FAIL 93.182.151.50
FAIL 31.18.48.137
FAIL 78.46.244.171
FAIL 68.224.41.74
FAIL 93.104.18.18
FAIL 64.30.108.103
FAIL 68.151.0.206
FAIL 72.137.58.56
FAIL 173.208.219.162
FAIL 77.86.194.236
FAIL 82.194.219.7
FAIL 75.226.126.136
FAIL 76.100.113.81
FAIL 193.152.183.107
FAIL 93.73.127.132
FAIL 69.113.187.76
FAIL 50.28.184.59
FAIL 46.38.235.69
FAIL 78.90.1.200
FAIL 27.54.10.37
FAIL 70.249.148.246
FAIL 62.24.74.214
FAIL 89.221.241.212
FAIL 212.255.32.143
FAIL 92.229.217.81
FAIL 99.23.82.9
FAIL 46.0.2.94
FAIL 77.7.200.50
FAIL 46.118.133.230
FAIL 188.176.144.130
FAIL 46.146.42.118
FAIL 84.231.94.252
FAIL 41.72.162.131
FAIL 77.34.91.119
FAIL 77.187.149.98
FAIL 85.5.236.56
FAIL 80.186.251.191
FAIL 96.2.86.229
FAIL 124.106.177.134
FAIL 78.35.114.211
FAIL 75.194.163.73
FAIL 31.23.106.47
FAIL 96.237.117.77
FAIL 91.17.148.174
FAIL 68.55.84.203
FAIL 89.12.8.99
FAIL 76.114.156.63
FAIL 24.206.119.201
FAIL 24.251.46.83
FAIL 46.59.220.105
FAIL 41.217.148.95
FAIL 77.187.50.23
FAIL 77.75.129.156
FAIL 46.118.179.230
FAIL 98.246.36.192
FAIL 91.227.172.143
FAIL 77.4.91.107
FAIL 87.123.140.121
FAIL 76.180.166.121
FAIL 87.48.125.6
FAIL 95.78.233.249
FAIL 91.225.203.145
FAIL 178.94.64.113
FAIL 78.35.98.38
FAIL 109.74.204.203
FAIL 75.213.105.191
FAIL 85.78.155.167
FAIL 81.62.109.236
FAIL 2.60.11.124
FAIL 83.54.248.96
FAIL 92.225.193.36
FAIL 46.182.16.17
FAIL 89.15.53.16
FAIL 85.29.111.165
FAIL 169.231.9.53
FAIL 84.131.18.235
FAIL 46.142.38.20
FAIL 188.40.78.147
FAIL 46.105.50.142
FAIL 31.162.49.131
FAIL 50.57.99.62
FAIL 46.177.18.200
FAIL 46.191.132.198
FAIL 46.45.17.128
FAIL 108.201.221.224
FAIL 74.202.48.198
FAIL 178.179.9.92
FAIL 24.5.88.11
FAIL 75.213.233.200
FAIL 67.170.105.209
FAIL 85.214.208.23
FAIL 99.153.2.29
FAIL 89.117.248.127
FAIL 31.31.112.203
FAIL 93.232.163.111
FAIL 84.154.94.228
FAIL 2.24.93.240
FAIL 46.59.208.68
FAIL 46.105.123.131
FAIL 78.53.212.204
FAIL 60.161.109.61
FAIL 77.8.35.52
FAIL 74.195.7.247
FAIL 58.219.246.85
FAIL 66.228.38.173
FAIL 31.162.51.98
FAIL 89.14.232.9
FAIL 77.181.174.140
FAIL 65.9.135.190
FAIL 14.210.7.180
FAIL 24.16.181.32
FAIL 46.21.251.86
FAIL 78.42.13.70
PASS 70.41.154.187
FAIL 46.177.14.86
FAIL 41.221.131.237
FAIL 83.79.114.214
FAIL 184.175.10.165
FAIL 217.70.19.69
FAIL 46.142.52.136
FAIL 173.254.18.115
FAIL 111.249.202.142
FAIL 95.78.218.27
FAIL 64.30.103.241
FAIL 59.62.140.60
FAIL 77.50.22.71
FAIL 222.78.226.221
FAIL 125.209.140.249
FAIL 68.70.29.169
FAIL 178.78.18.40
FAIL 41.81.125.20
FAIL 46.4.34.208
FAIL 59.61.115.97
FAIL 2.94.13.173
FAIL 46.147.226.140
FAIL 2.133.193.229
FAIL 50.30.156.84
FAIL 31.128.133.150
FAIL 173.23.226.134
FAIL 75.33.72.217
FAIL 98.244.16.65
FAIL 78.137.46.58
FAIL 46.73.53.189
FAIL 88.213.224.135
FAIL 125.239.184.100
FAIL 98.185.62.124
FAIL 62.75.168.114
FAIL 201.103.214.124
FAIL 46.10.55.40
FAIL 123.14.198.75
FAIL 96.236.193.111
FAIL 63.152.166.20
FAIL 75.154.115.134
FAIL 95.78.149.70
FAIL 92.225.226.50
FAIL 207.38.147.46
FAIL 94.28.128.229
FAIL 178.7.150.55
FAIL 69.17.21.50
FAIL 68.151.227.240
FAIL 85.76.181.172
FAIL 96.251.125.163
FAIL 201.92.181.131
FAIL 165.124.143.56
FAIL 95.79.3.21
FAIL 91.150.148.62
FAIL 173.255.224.104
FAIL 89.15.40.53
FAIL 207.144.225.143
FAIL 178.165.107.124
FAIL 67.219.233.165
FAIL 96.252.225.78
FAIL 95.78.217.217
FAIL 119.6.4.4
FAIL 94.179.169.14
FAIL 79.241.97.89
FAIL 99.160.253.103
FAIL 49.90.138.164
FAIL 85.78.82.198
FAIL 94.50.61.40
FAIL 95.81.55.63
FAIL 62.75.185.150
FAIL 14.98.206.172
FAIL 91.204.129.100
FAIL 75.109.160.164
FAIL 217.210.149.158
FAIL 213.3.12.228
FAIL 75.81.244.194
FAIL 68.173.154.183
FAIL 67.232.75.246
FAIL 112.64.6.178
FAIL 85.4.160.252
FAIL 78.250.157.66
FAIL 115.241.35.35
FAIL 94.24.164.237
FAIL 125.34.213.171
FAIL 88.77.253.158
FAIL 88.71.16.177
FAIL 85.233.17.72
FAIL 85.179.154.189
FAIL 75.244.33.233
FAIL 206.109.22.159
FAIL 178.121.226.9
FAIL 123.172.201.224
FAIL 173.165.1.121
FAIL 176.212.69.161
FAIL 113.70.16.121
FAIL 90.227.49.236
FAIL 85.181.224.79
FAIL 173.203.217.199
FAIL 85.127.5.173
FAIL 89.199.76.233
FAIL 67.176.224.127
FAIL 46.159.82.228
FAIL 178.212.77.13
FAIL 77.165.17.159
FAIL 78.46.30.3
FAIL 95.79.1.230
FAIL 108.202.209.17
FAIL 97.127.189.38
FAIL 79.133.134.235
FAIL 87.123.52.77
FAIL 46.190.107.17
FAIL 78.35.167.219
FAIL 46.253.203.123
FAIL 178.212.77.23
FAIL 46.118.134.102
FAIL 80.186.137.176
FAIL 70.130.37.198
FAIL 123.118.126.8
FAIL 74.203.168.196
FAIL 80.186.93.89
FAIL 2.229.10.127
FAIL 90.189.29.123
FAIL 146.52.96.160
FAIL 75.175.209.87
FAIL 212.255.33.158
FAIL 77.6.147.99
FAIL 110.55.7.116
FAIL 46.118.132.228
FAIL 83.78.42.18
FAIL 67.170.55.74
FAIL 190.166.136.56
FAIL 78.134.119.238
FAIL 213.141.156.3
FAIL 175.137.141.104
FAIL 98.143.152.14
FAIL 70.130.33.8
FAIL 70.130.47.252
FAIL 64.112.217.209
FAIL 178.212.76.214
FAIL 184.166.228.90
FAIL 188.233.13.125
FAIL 97.77.48.141
FAIL 114.198.197.6
FAIL 77.189.200.164
FAIL 59.55.253.224
FAIL 77.190.94.87
FAIL 119.98.210.114
FAIL 85.15.87.85
FAIL 217.84.177.119
FAIL 58.41.20.226
FAIL 75.15.116.252
FAIL 87.106.63.254
FAIL 2.95.197.169
FAIL 219.84.64.174
FAIL 24.217.148.35
FAIL 74.178.17.181
FAIL 178.26.116.184
FAIL 94.230.88.7
FAIL 91.121.181.199
FAIL 76.10.163.176
PASS 12.23.127.175
FAIL 46.118.180.243
FAIL 109.87.121.129
FAIL 129.21.138.115
FAIL 76.182.149.75
FAIL 24.182.41.152
FAIL 46.147.234.27
FAIL 75.170.222.123
FAIL 129.2.94.203
FAIL 84.143.97.101
FAIL 75.71.88.6
FAIL 207.106.6.39
FAIL 101.109.85.64
FAIL 83.77.32.125
FAIL 68.194.139.242
FAIL 85.52.226.220
FAIL 84.255.192.173
FAIL 72.201.99.56
FAIL 95.78.227.206
FAIL 2.94.184.222
FAIL 97.122.209.46
FAIL 77.9.123.106
FAIL 64.252.12.127
FAIL 84.63.96.89
FAIL 188.175.32.50
FAIL 98.217.223.181
FAIL 192.33.93.18
FAIL 67.210.248.19
FAIL 78.251.254.172
FAIL 71.193.194.134
FAIL 89.189.139.61
FAIL 31.162.2.189
FAIL 46.4.147.37
FAIL 124.122.161.198
FAIL 97.88.146.40
FAIL 68.237.135.180
FAIL 109.253.244.181
FAIL 69.138.194.144
FAIL 77.247.20.90
FAIL 76.27.215.67
FAIL 93.187.142.114
FAIL 80.249.91.136
PASS 208.77.19.8
FAIL 110.4.236.56
PASS 75.104.117.197
FAIL 46.45.8.80
FAIL 87.119.244.162
FAIL 174.134.15.39
FAIL 98.100.255.243
FAIL 78.63.237.16
FAIL 98.212.88.75
FAIL 62.226.28.224
FAIL 46.9.91.140
FAIL 78.47.229.99
FAIL 93.232.193.34
FAIL 78.245.8.169
FAIL 79.98.145.133
FAIL 78.185.15.44
FAIL 60.186.128.162
FAIL 76.27.244.182
FAIL 71.170.249.36
FAIL 71.22.32.39
FAIL 220.166.62.58
FAIL 190.195.79.161
FAIL 213.189.52.60
FAIL 91.79.141.91
FAIL 75.175.222.170
FAIL 80.171.28.199
FAIL 76.122.105.21
FAIL 76.115.26.154
FAIL 129.125.3.42
FAIL 89.189.144.37
FAIL 65.39.236.72
FAIL 91.156.72.83
FAIL 75.49.0.127
FAIL 98.211.112.33
FAIL 66.37.233.242
FAIL 68.11.193.66
FAIL 24.241.240.152
FAIL 86.52.58.136
FAIL 46.147.154.9
FAIL 188.247.56.234
FAIL 71.146.78.100
FAIL 46.182.97.187
FAIL 61.134.224.48
FAIL 84.190.81.95
FAIL 199.21.114.32
FAIL 69.108.48.95
FAIL 50.57.127.170
FAIL 69.125.218.152
FAIL 89.155.51.78
FAIL 129.21.65.46
FAIL 24.246.8.168
FAIL 89.12.44.173
FAIL 65.103.71.84
FAIL 209.159.233.9
FAIL 82.247.184.93
FAIL 189.248.109.193
FAIL 79.180.212.29
FAIL 46.223.110.16
FAIL 128.193.21.158
FAIL 111.181.214.42
FAIL 50.83.58.99
FAIL 124.120.51.255
FAIL 69.181.124.7
FAIL 109.190.16.102
FAIL 196.210.170.117
FAIL 91.77.251.114
FAIL 89.15.30.232
FAIL 50.99.111.87
FAIL 115.51.51.71
FAIL 131.215.30.53
FAIL 80.251.144.45
FAIL 108.15.94.141
FAIL 82.165.39.91
FAIL 187.62.41.219
FAIL 80.249.94.229
FAIL 216.58.19.75
FAIL 90.151.223.117
FAIL 64.135.106.123
FAIL 75.70.153.168
FAIL 97.81.177.250
FAIL 77.182.248.16
FAIL 77.234.85.208
FAIL 107.20.142.238
FAIL 184.175.20.75
FAIL 74.196.193.75
FAIL 204.29.150.155
FAIL 67.255.17.209
FAIL 69.183.160.252
PASS 18.228.0.200
FAIL 209.217.250.10
FAIL 80.195.81.247
FAIL 207.204.240.249
FAIL 69.165.144.162
FAIL 99.55.241.142
FAIL 89.13.199.126
FAIL 207.106.6.43
FAIL 69.108.73.101
FAIL 27.44.224.173
FAIL 119.176.110.174
PASS 91.230.193.146
FAIL 169.230.100.192
FAIL 109.229.73.198
FAIL 67.162.135.82
FAIL 91.79.222.54
FAIL 173.246.29.91
FAIL 89.154.195.101
FAIL 178.5.168.219
FAIL 168.122.6.32
FAIL 109.229.87.100
FAIL 207.38.238.60
FAIL 109.242.63.253
FAIL 74.109.248.4
FAIL 72.224.184.6
FAIL 92.205.59.169
FAIL 82.88.19.145
FAIL 67.166.144.190
FAIL 77.9.160.143
FAIL 95.33.216.6
FAIL 77.9.119.38
FAIL 92.104.53.215
FAIL 201.0.74.22
FAIL 95.172.9.82
FAIL 92.76.86.169
FAIL 95.79.80.59
FAIL 208.107.130.204
FAIL 46.4.21.70
FAIL 74.59.225.95
FAIL 109.184.129.140
FAIL 140.182.154.135
FAIL 184.100.229.29
FAIL 216.135.68.67
FAIL 99.27.203.45
FAIL 74.82.171.130
FAIL 187.106.103.176
FAIL 98.156.61.161
FAIL 109.184.181.219
FAIL 89.75.127.91
FAIL 77.180.223.173
FAIL 50.53.119.173
FAIL 76.5.151.57
FAIL 137.189.206.114
FAIL 76.84.148.177
FAIL 110.4.184.197
FAIL 178.222.26.110
FAIL 81.187.90.170
FAIL 68.75.181.239
FAIL 79.197.239.21
FAIL 77.188.241.233
FAIL 108.27.64.95
FAIL 173.24.240.151
FAIL 82.146.47.200
FAIL 46.118.220.44
FAIL 109.229.82.142
FAIL 94.23.39.24
FAIL 128.125.125.155
FAIL 69.104.173.178
FAIL 64.81.6.81
FAIL 24.10.24.113
FAIL 108.0.39.91
FAIL 85.226.33.6
FAIL 88.190.28.114
FAIL 184.12.12.103
FAIL 93.113.189.248
FAIL 217.197.189.224
FAIL 1.53.132.237
FAIL 77.85.132.75
FAIL 188.24.26.127
FAIL 71.175.188.83
FAIL 95.211.41.87
FAIL 70.162.221.240
FAIL 208.43.56.34
FAIL 176.31.100.77
FAIL 222.252.106.49
FAIL 31.47.162.80
FAIL 70.128.96.115
FAIL 74.216.97.196
FAIL 71.226.219.178

PASS: 6; FAIL 604.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBCgAGBQJUz/MtAAoJELmCKKABq//H4KIIAI/+oqKPwR0eLLKBhsoA/z3P
OObyc82bV1EZo/lQmdyv5TIxLdz0wmky0l63SFn0tbCkkLYDKhxs4eP9AZYpB8xq
/Me75QTR7/AMSRa6mc/9/aFt4jQzL8aV2PLJoTDv90OXdBWk15aTlRByyjV86SFU
v2Vs9KLQyyqtj2DypXAycLP4IYUtWq/MhRDt+bT+3GO4/f+5N+Bt8b19WDYhebfv
hB368QgFgChtIIDFYUfZyybmH8vWxtkPhhlpBELnWJSK4m8BE6IV3T3tmTgYEXUE
9hMxODRvGHl5XQ+wTpR9zTCbg0hfX50QE8AZXvc+KHUScZbVkQFDgndkTSIqrNo=
=hVAH
-----END PGP SIGNATURE-----


More information about the BTC-dev mailing list