mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 19:41:24 +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 {
|
private void load(File file) throws IOException, BlockStoreException {
|
||||||
LOG("Reading block store from " + file.getAbsolutePath());
|
LOG("Reading block store from " + file.getAbsolutePath());
|
||||||
FileInputStream input = new FileInputStream(file);
|
InputStream input = new BufferedInputStream(new FileInputStream(file));
|
||||||
// Read a version byte.
|
// Read a version byte.
|
||||||
int version = input.read();
|
int version = input.read();
|
||||||
if (version == -1) {
|
if (version == -1) {
|
||||||
|
Reference in New Issue
Block a user