<p>So after digging I got the solution, using this kit.setCheckpoints( new FileInputStream("checkpoints")); it was checking the file in the same package so to provide the exact path I have used 
kit.setCheckpoints( ReadProperties.class.getClassLoader().getResourceAsStream("checkpoints"));</p>

CC BY-SA 3.0
2017-12-16T07:17:41.913Z
2017-12-16T07:17:41.913Z
Aman Vyas
<p>I am using <a href="https://github.com/GENERALBYTESCOM/litecoinj" rel="nofollow noreferrer"><code>litecoinj</code></a> which is forked from <code>bitcoinj</code> but compared to <code>bitcoinj</code>, the wallet creation and block synching is slow when using <code>litecoinj</code>. So, I searched for a solution and found a post that suggests to download checkpoints in a file and pass the file while creating wallet, but I guess it's not working.</p>

<pre><code>kit.setCheckpoints( new FileInputStream("checkpoints"));
</code></pre>

<p>How can I speed up the syncing of <code>litecoinj</code>?</p>

<litecoin><synchronization><bitcoinj><java><checkpoints>
Is there anything I can do to speed up the synchronization of litecoinj?
Aman Vyas
# Is there anything I can do to speed up the synchronization of litecoinj?

(Asked by: username_0 on 2017-12-14)

I am using litecoinj which is forked from bitcoinj but compared to bitcoinj, the wallet creation and block synching is slow when using litecoinj. So, I searched for a solution and found a post that suggests to download checkpoints in a file and pass the file while creating wallet, but I guess it's not working.
kit.setCheckpoints( new FileInputStream("checkpoints"));

How can I speed up the syncing of litecoinj?

**Tags:** litecoin, synchronization, bitcoinj, java, checkpoints


---

## 1 answers

### Answer by username_0 on 2017-12-16. Score: 0

So after digging I got the solution, using this kit.setCheckpoints( new FileInputStream("checkpoints")); it was checking the file in the same package so to provide the exact path I have used
kit.setCheckpoints( ReadProperties.class.getClassLoader().getResourceAsStream("checkpoints"));


---

