Skip to content

Commit 7082714

Browse files
committed
fix(net):fix the issue of block synchronization
1 parent 1369924 commit 7082714

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/src/main/java/org/tron/core/net/service/sync/SyncService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private void processSyncBlock(BlockCapsule block) {
292292
if (peer.getSyncBlockInProcess().remove(blockId)) {
293293
if (flag) {
294294
peer.setBlockBothHave(blockId);
295-
if (peer.getSyncBlockToFetch().isEmpty() && !peer.isFetchAble()) {
295+
if (peer.getSyncBlockToFetch().isEmpty() && peer.isFetchAble()) {
296296
syncNext(peer);
297297
}
298298
} else {

0 commit comments

Comments
 (0)