1

I downloaded Bitcoin-QT for Windows 7 into:

MYUSERNAME/Downloads/bitcoin-0.8.6-win32/bitcoin-0.8.6-win32

I want to run Bitcoin in testnet mode, so I created bitcoin.conf with only the following content:

testnet=1

I put copies of bitcoin.conf into the following folders:

MYUSERNAME/Downloads/bitcoin-0.8.6-win32/bitcoin-0.8.6-win32
User/MYUSERNAME/AppData/Roaming/Bitcoin

When I double clicked on the Bitcoin-QT icon to execute the following, Bitcoin-QT starts up but it does not appear to be in testnet mode.

MYUSERNAME/Downloads/bitcoin-0.8.6-win32/bitcoin-0.8.6-win32/bitcoin-qt.exe

Can anyone tell me why it does not seem to go into testnet mode?

I went to Start > cmd to get the DOS prompt. I entered the following and it worked:

C:\User\MYUSERNAME\Downloads\bitcoin-0.8.-win32\bitcoin-0.8.6-win32>bitcoin-qt.exe -testnet

Bitcoin-QT launches in testnet mode. However, it is not synchronizing with the network. At the bottom, it shows "No block source available...155 weeks behind".

I tried adding the following to bitcoin.conf and restarted bitcoin-qt.exe -testnet but it didn't make any difference.

addnode=1.2.3.4
checklevel=2

After a few hours, it still shows "No block source available...155 weeks behind". How do I get this to synchronize?

JLP
  • 229
  • 5
  • 13
  • It can take more than hour to synchronize. Does "X weeks behind" change? – John T Jan 26 '14 at 03:53
  • It has been a few hours now and it still shows "No block source available...155 weeks behind". – JLP Jan 26 '14 at 17:18
  • For your first question, I would suspect that you haven't put your bitcoin.conf in the place where the Bitcoin client is looking for it. The correct folder should already contain files named like debug.log, peers.dat, and several others. – Nate Eldredge Jan 26 '14 at 19:03
  • @NateEldredge I have bitcoin.conf in the User/MYUSERNAME/AppData/Roaming/Bitcoin folder. This folder has the peers.dat, wallet.dat, db and debug files as well. There is no debug.log file. Do you have any ideas on why it is showing "No block source available"? – JLP Jan 27 '14 at 04:21
  • Typically this means it is not able to connect to any peers on the Internet. One possible cause is bad proxy settings, which is why I wondered if it was using a bitcoin.conf different from yours. Otherwise, could there be firewall settings or something similar preventing the application from communicating with the Internet? – Nate Eldredge Jan 27 '14 at 05:05
  • @NateEldredge It did not have a bitcoin.conf file. I created it. Bitcoin-QT is running in Windows 7, which is running in VirtualBox, which is running in my Mac OSX. There seems to be no issue with any firewall in Windows 7 as my browser works fine. I have LittleSnitch running on my Mac, which tells me if a program is trying to access the internet. It told me that Bitcoin on my Mac and a program on Windows tried to access the internet, which I allowed. On my Mac, my Bitcoin-QT (in testnet and mainnet) synchronized fine. On Windows, Bitcoin-QT for mainnet, but not testnet, can synchronize. – JLP Jan 27 '14 at 17:17
  • That's very strange. My only other idea would be to look at User/MYUSERNAME/AppData/Roaming/Bitcoin/testnet3/debug.log and see if there is a helpful message. – Nate Eldredge Jan 27 '14 at 19:15
  • @NateEldredge debug.log does not exist, but User/MYUSERNAME/AppData/Roaming/Bitcoin/testnet3/debug does. It has a lot of messages. Do these provide any clues?

    2014-01-26 01:15:49 trying connection 93.93.135.12:18333 lastseen=149.6hrs 2014-01-26 01:15:51 No valid UPnP IGDs found 2014-01-26 01:15:51 upnp thread exit 2014-01-26 01:15:54 connection timeout 2014-01-26 01:15:54 trying connection testnet-seed.bluematt.me lastseen=0.0hrs 2014-01-26 01:15:59 connection timeout 2014-01-26 01:16:04 trying connection testnet-seed.bitcoin.petertodd.org lastseen=0.0hrs

    – JLP Jan 28 '14 at 05:33
  • I also have the same issue @NateEldredge . But proxy isn't a problem for me. I tried by changing the proxy several times but its of no use ( I use college internet ). It works fine when I run it using my mobile data. I don't know why. I opened a question for the same with clear explanation and debug logs here, https://bitcoin.stackexchange.com/questions/52906/unable-to-connect-to-peers-nor-synchronize-the-network – Rewanth Tammana Apr 22 '17 at 03:15

1 Answers1

1

I got it to work by adding

[test]  
addnode=104.237.131.138  
addnode=151.80.205.132  
addnode=192.155.82.123  
addnode=74.220.255.190  

to the config file.

The reason is your wallet needs to connect to nodes to connect to the blockchain. Usually it comes with all the nodes required to connect, but sometimes the devs failed to include the nodes or released a new node list after an update (try looking in the bitcointalk page or the official website listed by the coin developers), so you have to add them manually.

Glorfindel
  • 529
  • 3
  • 8
  • 20
tqd
  • 21
  • 2