File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
framework/src/main/java/org/tron/core/net/peer Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public class PeerConnection {
8585
8686 @ Getter
8787 @ Setter
88- private TronState tronState = TronState .INIT ;
88+ private volatile TronState tronState = TronState .INIT ;
8989
9090 @ Autowired
9191 private TronNetDelegate tronNetDelegate ;
@@ -123,15 +123,15 @@ public class PeerConnection {
123123 private Map <Item , Long > advInvRequest = new ConcurrentHashMap <>();
124124
125125 @ Setter
126- private BlockId fastForwardBlock ;
126+ private volatile BlockId fastForwardBlock ;
127127
128128 @ Getter
129- private BlockId blockBothHave = new BlockId ();
129+ private volatile BlockId blockBothHave = new BlockId ();
130130 @ Getter
131131 private volatile long blockBothHaveUpdateTime = System .currentTimeMillis ();
132132 @ Setter
133133 @ Getter
134- private BlockId lastSyncBlockId ;
134+ private volatile BlockId lastSyncBlockId ;
135135 @ Setter
136136 @ Getter
137137 private volatile long remainNum ;
@@ -146,7 +146,7 @@ public class PeerConnection {
146146 private Map <BlockId , Long > syncBlockRequested = new ConcurrentHashMap <>();
147147 @ Setter
148148 @ Getter
149- private Pair <Deque <BlockId >, Long > syncChainRequested = null ;
149+ private volatile Pair <Deque <BlockId >, Long > syncChainRequested = null ;
150150 @ Setter
151151 @ Getter
152152 private Set <BlockId > syncBlockInProcess = new HashSet <>();
You can’t perform that action at this time.
0 commit comments