mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Make a field static. Resolves comments by Miron on r194.
This commit is contained in:
parent
0315b3a5e6
commit
99385e7aee
@ -61,7 +61,7 @@ public class BoundedOverheadBlockStore implements BlockStore {
|
||||
//
|
||||
// We don't care about the value in this cache. It is always notFoundMarker. Unfortunately LinkedHashSet does not
|
||||
// provide the removeEldestEntry control.
|
||||
private final StoredBlock notFoundMarker = new StoredBlock(null, null, -1);
|
||||
private static final StoredBlock notFoundMarker = new StoredBlock(null, null, -1);
|
||||
private LinkedHashMap<Sha256Hash, StoredBlock> notFoundCache = new LinkedHashMap<Sha256Hash, StoredBlock>() {
|
||||
@Override
|
||||
protected boolean removeEldestEntry(Map.Entry<Sha256Hash, StoredBlock> entry) {
|
||||
|
Loading…
Reference in New Issue
Block a user