mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-11 17:55:53 +00:00
Use BufferedInputStream in DiskBlockStore. Fixes issue 14.
This commit is contained in:
parent
aff7fda17d
commit
b792d40653
@ -71,7 +71,7 @@ public class DiskBlockStore implements BlockStore {
|
||||
|
||||
private void load(File file) throws IOException, BlockStoreException {
|
||||
LOG("Reading block store from " + file.getAbsolutePath());
|
||||
FileInputStream input = new FileInputStream(file);
|
||||
InputStream input = new BufferedInputStream(new FileInputStream(file));
|
||||
// Read a version byte.
|
||||
int version = input.read();
|
||||
if (version == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user