Are you saying that this is breaking your application? This looks like normal behavior to me - it just means that you received an orphan block / out of order block and bitcoinj ignored it. In most cases, bitcoinj should end up receiving more blocks that eventually connect them together. I have had issues on testnet though, where bitcoinj gets stuck on a long chain fork that is thousands of blocks long. If you run into that, you need to increase your "eventHorizon" which can be done by sending an additional parameter to the "Context" constructor.
- Jameson On Thu, May 5, 2016 at 1:46 AM, Murari Kumar < [email protected]> wrote: > When start my application 100 % block is downloaded.After sometime I am > getting some exception like this :- > > 2016-05-05 05:30:16.787 WARN 1303 --- [ioClientManager] > org.bitcoinj.core.AbstractBlockChain : Block does not connect: > 0000000000a32df153e4649ae1b1eba1bb0e1b214dd5e5018a46cd73bd26a707 prev > 000000000000054d027c016b07ad16b44612d7ab40fb658b67158c0224e3028e > 2016-05-05 05:30:16.787 INFO 1303 --- [ioClientManager] > org.bitcoinj.core.Peer : > blockChainDownloadLocked(000000000000082bdc1f7861f1fe3e27226d55cf1c042644eff73a2ac1e9d59c): > ignoring duplicated request: > 000000000058f6d5e40460f3de94ea27714e38f9dba585ed93bf69ab5ff14ff0 > 2016-05-05 05:30:16.787 INFO 1303 --- [ioClientManager] > org.bitcoinj.core.Peer : java.lang.Throwable > at org.bitcoinj.core.Peer.blockChainDownloadLocked(Peer.java:1298) > at org.bitcoinj.core.Peer.processBlock(Peer.java:865) > at org.bitcoinj.core.Peer.processMessage(Peer.java:358) > at > org.bitcoinj.core.PeerSocketHandler.receiveBytes(PeerSocketHandler.java:180) > at org.bitcoinj.net.ConnectionHandler.handleKey(ConnectionHandler.java:223) > at org.bitcoinj.net.NioClientManager.handleKey(NioClientManager.java:86) > at org.bitcoinj.net.NioClientManager.run(NioClientManager.java:122) > at > com.google.common.util.concurrent.AbstractExecutionThreadService$1$2.run(AbstractExecutionThreadService.java:60) > at com.google.common.util.concurrent.Callables$3.run(Callables.java:93) > at > org.bitcoinj.utils.ContextPropagatingThreadFactory$1.run(ContextPropagatingThreadFactory.java:35) > at java.lang.Thread.run(Thread.java:745) > > How can I resolve it . > > -- > 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. > -- 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.
