Author

Topic: bitcoind disconnecting 127.0.0.1 (Read 1244 times)

kjj
legendary
Activity: 1302
Merit: 1026
February 18, 2013, 12:09:27 PM
#4
Quote
I am connecting through a Python script to capture Bitcoin transactions to display them on a web page.  I start Bitcoind and then the Python script.  The script grabs the transactions and put them in a database.  It all seems to work for a time but Bitcoind keeps disconnecting the connection started by the python script.  If I stop everything and delete addr.dat (or peers.dat for version 0.7.2) then it all starts working again for a short time until the disconnects start again.

In that case, your python script isn't right.  The client will disconnect a node once it realizes it isn't working right.  It can take a few minutes for your script to trigger the bogus node detection.  Out of curiosity, is your script generating a random nonce for the address message, or is it repeating what it sees?
legendary
Activity: 1652
Merit: 1016
February 18, 2013, 10:45:14 AM
#3
I don't understand why you are connecting to 127.0.0.1 (localhost). If you wish to connect to another bitcoin node on your LAN you need to use it's IP address, such as 192.168.1.2 for example.
kjj
legendary
Activity: 1302
Merit: 1026
February 18, 2013, 08:12:31 AM
#2
You have the node connecting to itself, which will never work.  Self-connections are detected by a random nonce in the version message used in the initial handshake, not by IP address.

If you have a second node running that you want to connect to, specify the port in your -connect option.  127.0.0.1:port
hero member
Activity: 510
Merit: 500
February 15, 2013, 10:04:44 PM
#1
..
Jump to: