Seed bitcoin peers if none are detected

This commit is contained in:
Taylor Helsper 2020-08-23 20:26:26 -05:00
parent a3866ba0f5
commit 2c954d644d
5 changed files with 653 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# myNode Seed Bitcoin Peers
# /etc/systemd/system/seed_bitcoin_peers.service
[Unit]
Description=myNode Add Seed Peers
Wants=bitcoind.service
After=bitcoind.service
[Service]
Type=simple
KillMode=control-group
ExecStart=/usr/bin/mynode_add_bitcoin_peers.sh
User=bitcoin
Group=bitcoin
StandardOutput=journal
StandardError=journal
Restart=always
RestartSec=60
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,29 @@
#!/bin/bash
set -x
set -e
# Try to get peer info - if it fails serice will restart until bitcoind is ready
bitcoin-cli getpeerinfo
# Give bitcoind some time to start
sleep 2m
# Check if btc has peers
while true; do
echo "Checking Bitcoin peer count..."
PEER_COUNT=$(bitcoin-cli getpeerinfo | grep "id" | wc -l)
if [ "$PEER_COUNT" -lt "3" ]; then
echo "$PEER_COUNT peers. Try adding one."
RANDOM_PEER=$(shuf /usr/share/mynode/bitcoin_peers.txt | head -n 1)
echo "Attempting to add peer $RANDOM_PEER"
bitcoin-cli addnode "$RANDOM_PEER" "onetry"
sleep 1m
else
echo "We have $PEER_COUNT peers!"
sleep 60m
fi
done

View File

@ -669,6 +669,7 @@ apt-get clean
systemctl enable check_in
systemctl enable docker
systemctl enable bitcoind
systemctl enable seed_bitcoin_peers
systemctl enable lnd
systemctl enable firewall
systemctl enable invalid_block_check

View File

@ -0,0 +1,601 @@
2.39.173.126:8333
2.57.38.133:8333
2.92.39.39:15426
2.230.146.163:8333
5.2.74.175:8333
5.8.18.29:8333
5.39.222.39:8333
5.103.137.146:9333
5.128.87.126:8333
5.149.250.76:8333
5.182.39.200:8333
5.187.55.242:8333
5.188.62.24:8333
5.188.62.33:8333
5.188.187.130:8333
5.189.153.179:8333
5.198.20.227:8333
5.199.133.193:8333
5.254.82.130:8333
13.237.147.15:8333
18.27.79.17:8333
20.184.15.116:8433
23.17.160.159:8333
23.175.0.212:8333
23.245.24.154:8333
24.76.122.108:8333
24.96.73.156:8333
24.96.125.57:8333
24.155.196.27:8333
24.203.88.167:8333
24.233.245.188:8333
24.246.31.205:8333
31.6.98.94:8333
31.14.201.156:8333
31.25.241.224:8335
31.43.140.190:8333
31.134.121.223:8333
31.173.48.61:8333
34.203.169.172:8333
35.178.31.4:8333
35.185.172.62:8333
35.206.171.89:8333
35.208.87.203:8333
37.61.219.34:8333
37.143.210.19:8333
37.143.211.83:8333
37.235.128.11:8333
37.252.190.88:8333
38.102.134.85:8333
39.109.0.150:8333
42.200.72.205:8333
43.229.132.102:8333
45.36.184.6:8333
45.58.49.35:8333
45.76.18.47:8333
45.115.239.108:8333
46.23.87.218:8333
46.28.132.34:8333
46.32.50.98:8333
46.36.97.10:8333
46.38.237.108:8333
46.39.129.82:8333
46.160.195.121:8333
46.166.162.45:20001
46.188.30.118:8333
46.229.238.187:8333
46.254.217.169:8333
47.52.114.198:8885
47.88.84.126:8333
47.108.29.152:8333
47.108.30.165:8333
47.222.103.234:8333
49.245.50.224:8333
50.53.250.162:8333
50.225.198.67:6000
51.154.60.34:8333
54.242.17.7:8333
58.146.222.198:8333
58.158.0.86:8333
59.149.205.197:8333
60.251.129.61:8336
61.155.5.4:8333
62.45.4.139:8333
62.97.244.242:8333
62.109.18.23:8333
62.133.194.156:8333
62.138.0.217:8333
62.152.58.16:9421
63.143.34.98:8333
63.211.111.122:8333
63.224.249.240:8333
64.182.119.36:8333
64.229.105.111:8333
65.27.104.112:8333
65.183.76.73:8333
66.151.242.154:8335
66.206.13.70:8333
66.240.237.155:8333
66.240.237.172:8333
67.205.140.145:8333
67.210.228.203:8333
67.221.193.55:8333
67.222.131.151:8333
68.110.90.111:8333
68.142.33.36:8333
68.199.157.183:8333
68.202.128.19:8333
68.206.21.144:8333
69.30.215.42:8333
69.55.234.74:8333
69.59.18.22:8333
69.145.122.160:8333
69.175.49.230:8333
70.64.48.41:8333
71.33.232.126:8333
71.73.18.32:8333
71.146.114.111:8333
72.53.134.182:8333
73.126.97.99:8333
74.83.126.150:8333
74.84.128.158:9333
74.98.242.97:8333
74.118.137.119:8333
74.220.255.190:8333
75.45.51.41:8333
75.158.39.231:8333
76.11.17.187:8333
76.84.79.211:8333
76.167.179.75:8333
77.53.158.137:8333
77.119.229.106:8333
77.120.122.22:8433
77.120.122.114:8433
77.163.136.136:8333
77.220.140.74:8333
77.247.178.130:8333
78.128.62.52:8333
78.128.79.22:8333
78.141.123.99:8333
78.143.214.223:8333
78.159.99.85:8333
79.77.33.131:8333
79.120.70.47:8333
79.142.129.218:8333
79.175.125.210:8333
80.47.156.43:8333
80.89.203.172:8001
80.93.213.246:8333
80.111.142.213:8333
80.147.82.165:8333
80.211.191.11:8333
80.211.245.151:8333
80.229.28.60:8333
80.229.168.1:8333
80.253.94.252:8333
81.4.102.69:8333
81.7.13.84:8333
81.10.205.21:8333
81.117.225.245:8333
81.177.157.81:39993
81.235.185.150:8333
82.29.58.109:8333
82.117.166.77:8333
82.118.20.37:8333
82.146.50.143:8333
82.146.153.130:8333
82.149.97.25:17567
82.169.130.61:8333
82.181.179.230:8333
82.181.218.229:8333
82.194.153.233:8333
82.195.237.253:8333
82.197.218.97:8333
82.199.102.10:8333
82.199.102.133:8333
82.202.197.224:8333
82.217.245.7:8333
82.221.111.136:8333
83.89.27.50:8333
83.89.250.69:8333
83.167.27.4:8333
83.208.254.182:8333
83.217.8.31:44420
83.221.211.116:8335
83.243.59.41:8333
83.251.241.0:8333
84.38.3.249:8333
84.40.94.170:8333
84.192.16.234:8333
84.209.9.23:8333
84.234.96.115:8333
84.248.14.210:8333
85.119.83.25:8333
85.144.119.222:8333
85.145.238.93:8333
85.184.138.108:8333
85.190.0.5:8333
85.202.11.119:8333
85.204.96.207:8333
85.208.69.13:8333
85.214.90.161:8333
85.240.233.220:8333
85.241.106.203:8333
86.15.38.61:8333
86.76.7.132:8333
87.79.68.86:8333
87.79.94.221:8333
87.118.116.237:8333
87.120.8.5:20008
87.222.22.255:8333
87.233.181.146:8333
87.246.46.132:8333
87.249.207.89:8333
88.86.116.140:8333
88.86.116.142:8333
88.88.13.249:8333
88.147.244.250:8333
88.150.230.95:8333
88.202.202.221:8333
88.208.3.195:8333
88.212.44.33:8333
89.25.80.42:8333
89.28.117.31:8333
89.106.199.38:8333
89.142.75.60:8333
89.190.19.162:8333
89.212.9.96:8333
89.212.75.6:8333
89.248.250.12:8333
90.94.83.26:8333
90.182.165.18:8333
91.185.198.234:8333
91.193.237.116:8333
91.204.99.178:8333
91.204.149.5:8333
91.210.24.30:8333
91.211.88.33:8333
91.216.149.28:8333
91.222.128.59:8333
92.18.180.225:8333
92.53.89.123:8333
92.240.69.195:8333
92.249.143.44:8333
92.255.176.109:8333
93.57.81.162:8333
93.90.193.195:8330
93.90.207.46:8333
93.115.26.186:20004
93.115.240.26:8333
93.123.180.164:8333
93.175.204.121:8333
93.180.178.213:8333
94.19.7.55:8333
94.52.112.227:8333
94.53.2.181:8333
94.72.143.26:8333
94.103.120.173:8333
94.237.64.138:8333
94.237.80.207:8333
94.242.255.31:8333
95.24.48.84:15426
95.42.2.113:8333
95.69.249.63:8333
95.79.35.133:8333
95.87.226.56:8333
95.90.3.210:8333
95.110.234.93:8333
95.156.252.34:8333
95.211.189.3:8333
95.217.9.207:8333
96.9.80.109:8333
96.245.218.247:8333
97.104.206.3:8333
98.29.195.204:8333
99.231.196.126:8333
101.100.174.24:8333
101.100.174.240:8333
103.14.244.190:8333
103.37.205.47:8333
103.60.109.184:20008
103.84.84.250:8335
103.85.190.218:20000
103.99.168.100:8333
103.99.168.130:8333
103.214.146.86:8333
104.171.242.155:8333
104.199.184.15:8333
104.244.223.151:8333
105.29.76.194:8333
107.150.45.18:8333
107.180.77.21:8333
108.58.252.82:8333
108.183.77.12:8333
109.72.83.127:8333
109.99.63.159:8333
109.109.36.19:8333
109.110.81.90:8333
109.173.112.224:8333
109.202.107.125:8333
109.205.109.56:8333
109.236.84.141:8333
109.238.81.82:8333
109.248.206.13:8333
111.40.4.103:8333
111.90.140.217:8333
111.90.158.212:8333
112.213.103.98:8333
113.52.135.125:8333
115.47.141.250:8885
115.70.110.4:8333
116.87.15.244:8333
119.17.151.61:8333
119.171.134.87:8333
121.18.238.39:8333
121.78.223.186:8333
121.98.205.102:8333
122.112.148.153:8339
122.116.42.140:8333
124.160.119.93:8333
125.236.215.133:8333
129.13.189.212:8333
129.97.243.18:8333
130.185.77.105:8333
131.114.10.233:8333
131.188.40.34:8333
132.249.239.163:8333
134.19.186.195:8333
134.249.187.97:8333
136.144.215.219:8333
137.226.34.46:8333
139.9.249.234:8333
141.101.8.36:8333
143.89.121.207:8333
143.176.224.104:8333
144.34.161.65:18333
147.253.70.208:8333
148.66.50.82:8335
153.92.127.216:8333
153.120.115.15:8333
154.52.98.2:8444
155.4.116.169:8333
156.19.19.90:8333
156.34.178.138:8333
157.13.61.66:8333
157.13.61.67:8333
158.181.226.33:8333
159.100.242.254:8333
159.100.248.234:8333
159.253.98.209:8333
160.16.0.30:8333
160.20.145.62:8333
162.62.18.226:8333
162.62.26.218:8333
162.209.88.174:8333
162.244.80.208:8333
163.158.202.112:8333
163.172.181.191:8333
166.62.100.55:8333
167.114.35.12:8333
168.62.167.209:8200
168.235.74.110:8333
168.235.90.188:8333
170.249.37.243:8333
172.99.120.113:8333
173.21.218.95:8333
173.51.177.2:8333
173.95.72.234:8333
173.208.128.10:8333
173.209.44.34:8333
173.231.57.194:8333
173.255.204.124:8333
174.65.135.60:8333
174.94.155.224:8333
174.115.120.186:8333
176.53.160.170:8333
176.85.188.213:8333
176.99.2.207:8333
176.121.14.157:8333
176.122.157.173:8333
176.126.85.34:8333
176.198.120.197:8334
178.61.141.198:8333
178.119.183.34:8333
178.234.29.184:8333
178.255.42.126:8333
179.48.251.41:8333
180.150.73.100:8333
181.47.220.242:8333
181.170.139.47:8333
183.110.220.210:30301
183.230.93.139:8333
184.95.58.164:8663
184.164.147.82:41333
185.15.92.18:20993
185.25.60.199:8333
185.52.3.185:8333
185.61.138.4:8333
185.64.116.15:8333
185.83.110.53:8333
185.83.214.123:8333
185.95.219.53:8333
185.96.94.24:8333
185.102.71.6:8333
185.138.35.183:8333
185.140.252.253:8333
185.143.145.113:8333
185.148.3.227:8333
185.157.160.220:8333
185.163.44.44:8333
185.176.221.32:8333
185.186.208.162:8333
185.198.58.47:8333
185.198.59.183:8333
185.215.224.22:8333
185.232.28.254:8333
185.239.236.116:8333
185.251.161.54:8333
188.42.40.234:18333
188.65.212.138:8333
188.65.212.157:8333
188.68.45.143:8333
188.127.229.105:8333
188.131.177.130:8333
188.134.8.36:8333
188.134.88.5:8333
188.138.17.92:8333
188.150.157.11:8333
188.208.111.62:8333
188.231.177.149:8333
190.2.145.177:8333
190.104.249.44:8333
191.209.21.188:8333
192.3.11.20:8333
192.3.11.24:8333
192.34.56.59:8333
192.65.170.15:8333
192.65.170.50:8333
192.146.137.18:8333
192.166.47.32:8333
192.169.94.29:8333
192.227.80.83:8333
192.254.65.126:8333
193.10.203.23:8334
193.29.57.4:8333
193.58.196.212:8333
193.59.41.11:8333
193.84.116.22:8333
193.108.131.43:8333
193.148.71.10:8333
193.169.244.190:8333
193.194.163.35:8333
193.194.163.53:8333
194.5.159.197:8333
194.14.246.205:8333
194.135.92.96:8333
194.135.135.69:8333
194.158.92.150:8333
194.187.251.163:31239
195.56.63.5:8333
195.56.63.10:8333
195.67.139.54:8333
195.95.225.17:8333
195.135.194.8:8333
195.154.113.90:8333
195.206.20.114:8333
195.206.105.42:8333
195.209.249.164:8333
195.224.116.20:8333
198.1.231.6:8333
198.251.83.19:8333
199.48.83.58:8333
199.96.50.211:8333
199.188.204.25:8333
199.192.20.201:8333
200.76.194.7:8333
200.87.116.213:8333
202.28.194.82:8333
202.55.87.45:8333
203.130.48.117:8885
203.132.95.10:8333
204.14.245.180:8333
204.152.203.98:8333
205.209.162.98:8333
206.221.178.149:8333
208.110.99.105:8333
209.133.220.74:8333
209.151.237.71:8333
211.149.170.31:8333
212.51.132.226:8333
212.241.70.213:8333
213.21.15.22:8333
213.136.83.8:8333
213.227.152.108:8333
213.254.23.116:8333
216.108.236.180:8333
216.194.165.98:8333
216.236.164.82:8333
217.16.185.165:8333
217.21.24.146:8333
217.26.32.10:8333
217.64.47.138:8333
217.64.133.220:8333
217.92.55.246:8333
217.172.244.9:8333
218.75.140.45:8333
219.75.122.47:8333
220.233.138.130:8333
221.130.29.230:18421
222.122.49.40:8333
222.186.169.1:8333
222.222.43.29:8333
223.16.30.175:8333
2empatdfea6vwete.onion:8333
34aqcwnnuiqh234f.onion:8333
3gxqibajrtysyp5o.onion:8333
3sami4tg4yhctjyc.onion:8333
3w77hrilg6q64opl.onion:8333
46xh2sbjsjiyl4fu.onion:8333
4ee44qsamrjpywju.onion:8333
4haplrtkprjqhm2j.onion:8333
4u3y3zf2emynt6ui.onion:8333
57dytizbai7o4kq7.onion:8333
5guaeulc7xm4g2mm.onion:8334
5mtvd4dk62ccdk4v.onion:8333
5pmjz6mmikyabaw5.onion:8333
6eurcxoqsa4qpiqq.onion:8333
6ivvkeseojsmpby4.onion:8333
6tlha6njtcuwpfa3.onion:8333
6ymgbvnn6d5nfmv4.onion:8333
72y2n5rary4mywkz.onion:8333
7b75ub5dapphemit.onion:8333
7xaqpr7exrtlnjbb.onion:8333
a64haiqsl76l25gv.onion:8333
ab7ftdfw6qhdx3re.onion:8333
aiupgbtdqpmwfpuz.onion:8333
akeg56rzkg7rsyyg.onion:8333
akinbo7tlegsnsxn.onion:8333
anem5aq4cr2zl7tz.onion:8333
at3w5qisczgguije.onion:8333
auo4zjsp44vydv6c.onion:8333
bowg4prf63givea4.onion:8333
cjuek22p4vv4hzbu.onion:8333
cklaa2xdawrb75fg.onion:8333
coxiru76nnfw3vdj.onion:8333
cwq2fuc54mlp3ojc.onion:8333
dganr7dffsacayml.onion:8333
djbsspmvlc6ijiis.onion:8333
dmfwov5ycnpvulij.onion:8333
dp2ekfbxubpdfrt4.onion:8333
dw2ufbybrgtzssts.onion:4333
edkmfeaapvavhtku.onion:8333
ejdoey3uay3cz7bs.onion:8333
eladlvwflaahxomr.onion:8333
ffhx6ttq7ejbodua.onion:8333
hbnnzteon75un65y.onion:8333
hcyxhownxdv7yybw.onion:8333
hdfcxll2tqs2l4jc.onion:8333
hdld2bxyvzy45ds4.onion:8333
hlnnhn2xj2qffqjs.onion:8333
hnqwmqikfmnkpdja.onion:8333
hvmjovdasoin43wn.onion:8333
hwzcbnenp6dsp6ow.onion:8333
i5ellwzndjuke242.onion:8333
iapvpwzs4gpbl6fk.onion:8885
if7fsvgyqwowxkcn.onion:8333
ilukzjazxlxrbuwy.onion:8333
kswfyurnglm65u7b.onion:8333
ldu2hbiorkvdymja.onion:8333
lvvgedppmpigudhz.onion:8333
mk3bnep5ubou7i44.onion:8333
muhp42ytbwi6qf62.onion:8333
n5khsbd6whw7ooip.onion:8333
ndmbrjcvu2s6jcom.onion:8333
nf4iypnyjwfpcjm7.onion:8333
nkdw6ywzt3dqwxuf.onion:8333
o4sl5na6jeqgi3l6.onion:8333
opencubebqqx3buj.onion:8333
ovbkvgdllk3xxeah.onion:8333
pg2jeh62fkq3byps.onion:8333
pkcgxf23ws3lwqvq.onion:8333
qdtau72ifwauot6b.onion:8333
qidnrqy2ozz3nzqq.onion:8333
readybit5veyche6.onion:8333
s2epxac7ovy36ruj.onion:8333
satofxsc3xjadxsm.onion:8333
sv5oitfnsmfoc3wu.onion:8333
uftbw4zi5wlzcwho.onion:8333
uz3pvdhie3372vxw.onion:8333
v2x7gpj3shxfnl25.onion:8333
vov46htt6gyixdmb.onion:8333
wg3b3qxcwcrraq2o.onion:8333
wgeecjm4w4ko66f7.onion:8333
wmxc6ask4a5xyaxh.onion:8333
wqrafn4zal3bbbhr.onion:8333
xhi5x5qc44elydk4.onion:8333
xk6bjlmgvwojvozj.onion:8333
xmgr7fsmp7bgburk.onion:8333
xocvz3dzyu2kzu6f.onion:8333
xv7pt6etwxiygss6.onion:8444
yumx7asj7feoozic.onion:8333
zmaddsqelw2oywfb.onion:8444

View File

@ -742,6 +742,7 @@ systemctl enable bandwidth
systemctl enable www
systemctl enable drive_check
systemctl enable bitcoind
systemctl enable seed_bitcoin_peers
systemctl enable lnd
systemctl enable loopd
systemctl enable lnd_unlock