mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 10:15:52 +00:00
Close block store after finding height for wallet import.
This commit is contained in:
parent
8003266a66
commit
087a4f2447
@ -305,7 +305,7 @@ public class WalletTool {
|
||||
// fields gets set correctly for older wallets.
|
||||
store = new BoundedOverheadBlockStore(params, chainFileName);
|
||||
loader.setChainHeight(store.getChainHead().getHeight());
|
||||
System.out.println("Setting chain height for import to " + store.getChainHead().getHeight());
|
||||
store.close();
|
||||
store = null;
|
||||
}
|
||||
wallet = loader.readWallet(new BufferedInputStream(new FileInputStream(walletFile)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user