<p>I work with a bitcoin wallet app using the <code>Java/BitcoinJ</code>. The app has custom features such as showing balance, transactions, address and sending option. It was running fine and suddenly, I get the <code>blockChainDownloadLocked ignoring the duplicate request</code> error in the app. </p>

<pre><code>org.bitcoinj.core.Peer: 06/19/2017 16:26:28 - blockChainDownloadLocked(00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206): ignoring duplicated request: 00000000076d710f40120e2f6693371bf6a7c4a9d149fb665664272a91dccf5a
org.bitcoinj.core.Peer: 06/19/2017 16:26:28 - java.lang.Throwable
    at org.bitcoinj.core.Peer.blockChainDownloadLocked(Peer.java:1446)
    at org.bitcoinj.core.Peer.processInv(Peer.java:1247)
    at org.bitcoinj.core.Peer.processMessage(Peer.java:489)
    at org.bitcoinj.core.PeerSocketHandler.receiveBytes(PeerSocketHandler.java:182)
    at org.bitcoinj.net.BlockingClient.runReadLoop(BlockingClient.java:122)
    at org.bitcoinj.net.BlockingClient$1.run(BlockingClient.java:81)
</code></pre>

<p>I use <code>IntellIJ</code> and cleared the Cache <code>(Invalidate Cache/ Restart ...)</code> and deleted the <code>target</code> folder to resolve it. It didn't help. Later, on enter in the <code>Cache</code> folder in the <code>Mac OS</code> and deleted everything inside all the folders. </p>

<p>I think rolling back the entire blockchain would be a solution, but, open for better suggestions. </p>

<p>What's the issue here and how to solve? </p>

CC BY-SA 3.0
2017-06-20T08:32:20.130Z
Are you using PeerGroup or just one Peer? If just one Peer, is it your own node?
Andreas
CC BY-SA 3.0
2017-06-20T08:43:04.490Z
How do I suppose to know that?
Arefe
CC BY-SA 3.0
2017-06-20T08:58:41.227Z
I assume its `PeerGroup`
Arefe
CC BY-SA 3.0
2017-06-21T11:13:31.233Z
If you're using PeerGroup then it connects to multiple peers simultaneously and will switch to another download peer if one is stuck downloading. I've seen the above problem too but usually it simply recovers by switching peers.

btw. You should know the code you're using.
Andreas
CC BY-SA 3.0
2017-06-22T08:22:38.080Z
Its repeating again and again for me. I can connect with main net btw. How to solve this issue?
Arefe
<bitcoinj><java>
blockChainDownloadLocked ignoring the duplicate request error
Arefe
# blockChainDownloadLocked ignoring the duplicate request error

(Asked by: username_0 on 2017-06-19)

I work with a bitcoin wallet app using the `Java/BitcoinJ`. The app has custom features such as showing balance, transactions, address and sending option. It was running fine and suddenly, I get the `blockChainDownloadLocked ignoring the duplicate request` error in the app.

```
org.bitcoinj.core.Peer: 06/19/2017 16:26:28 - blockChainDownloadLocked(00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206): ignoring duplicated request: 00000000076d710f40120e2f6693371bf6a7c4a9d149fb665664272a91dccf5a
org.bitcoinj.core.Peer: 06/19/2017 16:26:28 - java.lang.Throwable
    at org.bitcoinj.core.Peer.blockChainDownloadLocked(Peer.java:1446)
    at org.bitcoinj.core.Peer.processInv(Peer.java:1247)
    at org.bitcoinj.core.Peer.processMessage(Peer.java:489)
    at org.bitcoinj.core.PeerSocketHandler.receiveBytes(PeerSocketHandler.java:182)
    at org.bitcoinj.net.BlockingClient.runReadLoop(BlockingClient.java:122)
    at org.bitcoinj.net.BlockingClient$1.run(BlockingClient.java:81)

```

I use `IntellIJ` and cleared the Cache `(Invalidate Cache/ Restart ...)` and deleted the `target` folder to resolve it. It didn't help. Later, on enter in the `Cache` folder in the `Mac OS` and deleted everything inside all the folders.

I think rolling back the entire blockchain would be a solution, but, open for better suggestions.

What's the issue here and how to solve?

**Tags:** bitcoinj, java

> **Comments:**
> **username_1**: Are you using PeerGroup or just one Peer? If just one Peer, is it your own node?  
> **username_0**: How do I suppose to know that?  
> **username_0**: I assume its `PeerGroup`  
> **username_1**: If you're using PeerGroup then it connects to multiple peers simultaneously and will switch to another download peer if one is stuck downloading. I've seen the above problem too but usually it simply recovers by switching peers.  btw. You should know the code you're using.  
> **username_0**: Its repeating again and again for me. I can connect with main net btw. How to solve this issue?  

---

## 0 answers

