I am facing the same problem.
How do I setup the RegTest network?
Do I have to make changes in the bitcoin.conf file?

On Monday, March 21, 2016 at 7:00:50 PM UTC+5:30, Andreas Schildbach wrote:
>
> From the log I can tell it connects to IP 127.0.1.1 on port 18444 all 
> the time. Looks like the example runs on reg test network, which you 
> need to set up first. 
>
> See https://bitcoinj.github.io/testing "Regression test mode". 
> Alternatively, it might be easier to just switch the timestamper-tool to 
> TestNet or MainNet. 
>
>
> On 03/16/2016 08:51 PM, jimgee1000 wrote: 
> > Hi, 
> > 
> > I'm a software dev, although am new to the bitcoin/blockchain tech and 
> > was trying to run the bitcoinj/timestamper app (on ubuntu14.04 with 
> > java8) as described in the tutorial. But the message 'Synchronising with 
> > the Bitcoin network', never seems to go away. The following is the 
> > beginning of the console log: 
> > 
> > github-projects/devcoretalk-master/target$ java 
> > -Djava.net.preferIPv4Stack=true -jar timestamper-shaded.jar 
> > 19:39:14 18 
> > WalletSetPasswordController.lambda$estimateKeyDerivationTimeMsec$42: 
> > Doing background test key derivation 
> > 19:39:14 19 WalletAppKit.startUp: Starting up with directory = . 
> > 19:39:15 19 AbstractBlockChain.<init>: chain head is at height 0: 
> >  block: 
> >    hash: 
> 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206 
> >    version: 1 
> >    previous block: 
> > 0000000000000000000000000000000000000000000000000000000000000000 
> >    merkle root: 
> > 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b 
> >    time: [1296688602] 2011-02-02T23:16:42Z 
> >    difficulty target (nBits): 545259519 
> >    nonce: 2 
> > 
> > 19:39:15 19 AbstractBlockChain.addWallet: Wallet/chain height mismatch: 
> > -1 vs 0 
> > 19:39:15 19 AbstractBlockChain.addWallet: Hashes: null vs 
> > 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206 
> > 19:39:15 20 PeerGroup$7.run: Starting ... 
> > 19:39:15 20 PeerGroup.maybeCheckForLocalhostPeer: Localhost peer not 
> > detected. 
> > 19:39:15 20 PeerGroup.connectTo: Attempting connection to 
> > [127.0.1.1]:18444     (0 connected, 1 pending, 1 max) 
> > 19:39:15 21 NioClientManager.handleKey: Failed to connect with 
> > exception: java.net.ConnectException: Connection refused 
> > 19:39:15 21 PeerGroup.handlePeerDeath: [127.0.1.1]:18444: Peer died     
> > (0 connected, 0 pending, 1 max) 
> > 19:39:15 20 PeerGroup.discoverPeers: Peer discovery took 0ms and 
> > returned 0 items 
> > 19:39:15 20 PeerGroup$5.go: Waiting 1500 msec before next connect 
> > attempt to [127.0.1.1]:18444 
> > 19:39:15 18 
> > WalletSetPasswordController.lambda$estimateKeyDerivationTimeMsec$42: 
> > Background test key derivation took 710msec 
> > 19:39:16 20 PeerGroup.connectTo: Attempting connection to 
> > [127.0.1.1]:18444     (0 connected, 1 pending, 1 max) 
> > 19:39:16 21 NioClientManager.handleKey: Failed to connect with 
> > exception: java.net.ConnectException: Connection refused 
> > 19:39:16 21 PeerGroup.handlePeerDeath: [127.0.1.1]:18444: Peer died     
> > (0 connected, 0 pending, 1 max) 
> > 19:39:16 20 PeerGroup.discoverPeers: Peer discovery took 0ms and 
> > returned 0 items 
> > 19:39:16 20 PeerGroup$5.go: Waiting 3375 msec before next connect 
> > attempt to [127.0.1.1]:18444 
> > 19:39:20 20 PeerGroup.connectTo: Attempting connection to 
> > [127.0.1.1]:18444     (0 connected, 1 pending, 1 max) 
> > 19:39:20 21 NioClientManager.handleKey: Failed to connect with 
> > exception: java.net.ConnectException: Connection refused 
> > 19:39:20 21 PeerGroup.handlePeerDeath: [127.0.1.1]:18444: Peer died     
> > (0 connected, 0 pending, 1 max) 
> > 19:39:20 20 PeerGroup.discoverPeers: Peer discovery took 0ms and 
> > returned 0 items 
> > 19:39:20 20 PeerGroup$5.go: Waiting 7594 msec before next connect 
> > attempt to [127.0.1.1]:18444 
> > 19:39:20 22 PeerSocketHandler.timeoutOccurred: [127.0.1.1]:18444: Timed 
> out 
> > 19:39:20 22 PeerGroup.handlePeerDeath: [127.0.1.1]:18444: Peer died     
> > (0 connected, 0 pending, 1 max) 
> > 19:39:20 20 PeerGroup.discoverPeers: Peer discovery took 0ms and 
> > returned 0 items 
> > 19:39:20 20 PeerGroup$5.go: Waiting 10000 msec before next connect 
> > attempt to [127.0.1.1]:18444 
> > 
> > I get the feeling I'm missing something elementary but so far I've not 
> > managed to find what it is. I saw the thread in which it was suggested 
> > the runtime property java.net.preferIPv4Stack=true be provided but it 
> > seemed to make no difference. 
> > 
> > Any help would be much appreciated. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "bitcoinj" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to [email protected] <javascript:> 
> > <mailto:[email protected] <javascript:>>. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to