mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 03:21:23 +00:00
Use BufferedInputStream in DiskBlockStore. Fixes issue 14.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user