mirror of
https://github.com/Qortal/qortal.git
synced 2025-06-05 07:46:59 +00:00
Hopeful fix for ConcurrentModificationException in BlockArchiveReader.getFilenameForHeight()
This commit is contained in:
parent
498ca29aab
commit
a12ae8ad24
@ -63,8 +63,10 @@ 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()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user