1 parent ff5ffc1 commit 80e429cCopy full SHA for 80e429c
2 files changed
src/main/java/org/tron/common/utils/SlidingWindowCounter.java
@@ -43,7 +43,7 @@ public String toString() {
43
*/
44
public class SlidingWindowCounter {
45
46
- private SlotBaseCounter slotBaseCounter;
+ private volatile SlotBaseCounter slotBaseCounter;
47
private volatile int windowSize;
48
private volatile int head;
49
src/main/java/org/tron/core/capsule/utils/MerkleTree.java
@@ -10,7 +10,7 @@
10
@Getter
11
public class MerkleTree {
12
13
- private static MerkleTree instance;
+ private static volatile MerkleTree instance;
14
private List<Sha256Hash> hashList;
15
private List<Leaf> leaves;
16
private Leaf root;
0 commit comments