Bitcoin Forum
March 25, 2017, 09:58:54 AM *
News: Latest stable version of Bitcoin Core: 0.14.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Test network support broken?  (Read 1372 times)
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
November 22, 2010, 06:01:00 AM
 #1


In current, vanilla upstream (SVN r187, no third party patches), the test network does not appear to work.

I execute
Code:
nice -n19 /spare/repo/bitcoin.hacks/bitcoind -testnet -gen -datadir=/garz/bitcoin/test/data -server
and bitcoin immediately exits.  debug log shows the following:

Code:
Bitcoin version 0.3.15.5 beta
Default data directory /g/g/.bitcoin
Bound to port 18333
Loading addresses...
dbenv.open strLogDir=/garz/bitcoin/test/data/testnet/database strErrorFile=/garz/bitcoin/test/data/testnet/db.log
Loaded 0 addresses
 addresses                19ms
Loading block index...
LoadBlockIndex(): hashBestChain=0000000224b1593e3ff1  height=0
 block index             377ms
Loading wallet...
nFileVersion = 31504
fGenerateBitcoins = 0
nTransactionFee = 0
addrIncoming = 255.255.255.255:8333
fMinimizeToTray = 0
fMinimizeOnClose = 0
fUseProxy = 0
addrProxy = 127.0.0.1:9050
 wallet                    2ms
Done loading
mapBlockIndex.size() = 1
nBestHeight = 0
mapKeys.size() = 1
mapPubKeys.size() = 1
mapWallet.size() = 0
mapAddressBook.size() = 1
sending: version (85 bytes)
ThreadRPCServer started
ipv4 eth0: 10.10.20.30
addrLocalHost = 10.10.20.30:18333
ThreadRPCServer exiting
DBFlush(false)
addr.dat refcount=0
addr.dat flush
blkindex.dat refcount=0
blkindex.dat flush
wallet.dat refcount=0
wallet.dat flush
StopNode()
DBFlush(true)
Bitcoin exiting

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
There are several different types of Bitcoin clients. EWallets are like banks -- a central organization has complete control over your money. You shouldn't put much money in EWallets.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1490435934
Hero Member
*
Offline Offline

Posts: 1490435934

View Profile Personal Message (Offline)

Ignore
1490435934
Reply with quote  #2

1490435934
Report to moderator
1490435934
Hero Member
*
Offline Offline

Posts: 1490435934

View Profile Personal Message (Offline)

Ignore
1490435934
Reply with quote  #2

1490435934
Report to moderator
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
November 22, 2010, 06:07:28 AM
 #2

Update:  it's complaining about bitcoin.conf not existing... yet it does exist:

Code:
[jgarzik@bd bitcoin.hacks]$ nice -n19 /spare/repo/bitcoin.hacks/bitcoind -testnet -gen -datadir=/garz/bitcoin/test/data -server
bitcoin server starting
Warning: To use the "-server" option, you must set rpcpassword=<password>
in the configuration file: /garz/bitcoin/test/data/testnet/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
and yet...
Code:
[jgarzik@bd bitcoin.hacks]$ ls -l /garz/bitcoin/test/data/testnet/bitcoin.conf
-rw------- 1 jgarzik jgarzik 35 Nov 22 01:04 /garz/bitcoin/test/data/testnet/bitcoin.conf

Update2: Using the command line -rpcuser and -rpcpassword works around this bug, and starts the test network successfully.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2604


View Profile
November 22, 2010, 06:15:08 AM
 #3

Try it with an explicit -conf=file switch.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!