3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 18:25:51 +00:00

Close block store after finding height for wallet import.

This commit is contained in:
Mike Hearn 2012-09-07 15:11:32 +02:00
parent 8003266a66
commit 087a4f2447

View File

@ -305,7 +305,7 @@ public class WalletTool {
// fields gets set correctly for older wallets. // fields gets set correctly for older wallets.
store = new BoundedOverheadBlockStore(params, chainFileName); store = new BoundedOverheadBlockStore(params, chainFileName);
loader.setChainHeight(store.getChainHead().getHeight()); loader.setChainHeight(store.getChainHead().getHeight());
System.out.println("Setting chain height for import to " + store.getChainHead().getHeight()); store.close();
store = null; store = null;
} }
wallet = loader.readWallet(new BufferedInputStream(new FileInputStream(walletFile))); wallet = loader.readWallet(new BufferedInputStream(new FileInputStream(walletFile)));