Author

Topic: Add nodes from blockchain.info to bitcoind (Read 2548 times)

zvs
legendary
Activity: 1680
Merit: 1000
https://web.archive.org/web/*/nogleg.com
February 18, 2015, 09:14:55 PM
#11
yeah, don't see the purpose either, re: addnode on blockchain.info nodes.  is the sort random?  even worse if not

full member
Activity: 168
Merit: 100
February 16, 2015, 04:07:03 AM
#10
Haven't tried the script, but the list of connected nodes (http://blockchain.info/connected-nodes) is something interesting and I didn't know was there.

Then you might find this interesting too: https://getaddr.bitnodes.io/

thank you very much for the tutoril newar!!

legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
February 15, 2015, 08:13:25 PM
#9
Can this create a node i really want to create one for myself ,
Did the nodes owner make profit I heard that they earn from each transactions

This script won't create a node.

You don't make profit from running a node. There is currently a lottery going on, but it will unlikely cover your costs for running a node:
https://getaddr.bitnodes.io/nodes/incentive/

Reasons why people run full nodes even without financial reward: https://en.bitcoin.it/wiki/Full_node#Why_should_you_run_a_full_node.3F
sr. member
Activity: 256
Merit: 250
February 15, 2015, 06:34:06 PM
#8
Can this create a node i really want to create one for myself ,
Did the nodes owner make profit I heard that they earn from each transactions
legendary
Activity: 1932
Merit: 1042
https://locktrip.com/?refId=40964
February 10, 2015, 04:36:13 AM
#7
Haven't tried the script, but the list of connected nodes (http://blockchain.info/connected-nodes) is something interesting and I didn't know was there.

many thanks!!!

i just bookmarket the list URL!

may always be useful

 Wink Wink Wink Wink
hero member
Activity: 910
Merit: 1000
February 10, 2015, 04:28:27 AM
#6
Haven't tried the script, but the list of connected nodes (http://blockchain.info/connected-nodes) is something interesting and I didn't know was there.

Then you might find this interesting too: https://getaddr.bitnodes.io/

Oh yeah. Even better!
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
February 09, 2015, 10:10:48 PM
#5
Haven't tried the script, but the list of connected nodes (http://blockchain.info/connected-nodes) is something interesting and I didn't know was there.

Then you might find this interesting too: https://getaddr.bitnodes.io/
hero member
Activity: 910
Merit: 1000
February 09, 2015, 07:48:12 PM
#4
Haven't tried the script, but the list of connected nodes (http://blockchain.info/connected-nodes) is something interesting and I didn't know was there.
member
Activity: 112
Merit: 10
February 09, 2015, 01:11:34 PM
#3

I don't see how this would be useful / a good idea?

LOL +1...

same here

 Huh Huh Huh Huh
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
February 09, 2015, 09:14:35 AM
#2

I don't see how this would be useful / a good idea?
member
Activity: 63
Merit: 16
February 09, 2015, 08:51:42 AM
#1
Hello,

I've created a simple bash script for insert nodes from blockchain.info to bitcoind.

Code:
#!/bin/bash
 
# Add nodes from blockchain.info to bitcoind
# Tested on bitcoin version 0.9.1
 
#run as Bitcoin user
#su -l Bitcoin -c "/home/addnode.sh" -s /bin/sh
 
clear
 
IFS=$'\n'
nodes=`curl -s http://blockchain.info/connected-nodes | egrep -o '([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)' | sort -u`
i=0
for node in $nodes; do
bitcoin=`bitcoind addnode $node add 2>&1`
if [ -z "$bitcoin" ]; then
((i++))
elif [ -n "`echo $bitcoin | grep -v 'error: {"code":-23,"message":"Error: Node already added"}'`" ]; then
echo "Unknown error: $bitcoin"
exit 1
fi
done
 
if [ "$i" -gt 0 ]; then
echo "Successfully added $i new nodes."
else
echo "There are no new nodes."
fi

Can be run from a cronjob (change path):
Code:
*/30 * * * * /home/addnode.sh > /dev/null

Here is source: https://gist.github.com/emsit/98f13006afa2ff69328b
Jump to: