<p>I am using bitcoinJ to develop a bitcoin based payment module for my project. I have the complete block chain downloaded/in sync with the network on the bitcoin-qt client.
Is there a way I can use this bitcoin-qt blockchain database in my bitcoinJ application rather than waiting downloadBlockChain() method which is taking a huge amount of time.</p>

<p>PS : Any pointers on how long will it take downloadBlockChain() to complete the download?</p>

CC BY-SA 3.0
2013-03-16T12:51:19.560Z
It might easily take a couple of days.
o0'.
CC BY-SA 3.0
2013-03-17T06:47:41.160Z
@Lohoris Thanks. Just one quick question :If I use saveWalletToFile, the blockchain too gets saved, right?
Raghav Bali
CC BY-SA 3.0
2013-03-17T11:02:59.170Z
No, it only saves the wallet, which is were your coins are saved.
o0'.
CC BY-SA 3.0
2013-03-17T16:32:22.357Z
So it means every other time when I have to make a payment, the blockchain has to be downloaded all over again?
Raghav Bali
CC BY-SA 3.0
2013-03-17T16:51:26.393Z
No of course, just don't delete it.
o0'.
<blockchain><bitcoin-core><bitcoinj>
Bitcoin-qt database for BitcoinJ downloadBlockChain()
Raghav Bali
# Bitcoin-qt database for BitcoinJ downloadBlockChain()

(Asked by: username_0 on 2013-03-16)

I am using bitcoinJ to develop a bitcoin based payment module for my project. I have the complete block chain downloaded/in sync with the network on the bitcoin-qt client.
Is there a way I can use this bitcoin-qt blockchain database in my bitcoinJ application rather than waiting downloadBlockChain() method which is taking a huge amount of time.

PS : Any pointers on how long will it take downloadBlockChain() to complete the download?

**Tags:** blockchain, bitcoin-core, bitcoinj

> **Comments:**
> **username_1**: It might easily take a couple of days.  
> **username_0**: @Lohoris Thanks. Just one quick question :If I use saveWalletToFile, the blockchain too gets saved, right?  
> **username_1**: No, it only saves the wallet, which is were your coins are saved.  
> **username_0**: So it means every other time when I have to make a payment, the blockchain has to be downloaded all over again?  
> **username_1**: No of course, just don't delete it.  

---

## 0 answers

