|
|
@ -63,10 +63,8 @@ public class BlockArchiveReader { |
|
|
|
map.put(filename, new Triple(startHeight, endHeight, range)); |
|
|
|
map.put(filename, new Triple(startHeight, endHeight, range)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
synchronized (this.fileListCache) { |
|
|
|
|
|
|
|
this.fileListCache = map; |
|
|
|
this.fileListCache = map; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Triple<BlockData, List<TransactionData>, List<ATStateData>> fetchBlockAtHeight(int height) { |
|
|
|
public Triple<BlockData, List<TransactionData>, List<ATStateData>> fetchBlockAtHeight(int height) { |
|
|
|
if (this.fileListCache.isEmpty()) { |
|
|
|
if (this.fileListCache.isEmpty()) { |
|
|
|