Skip to content

Commit eb4ecaa

Browse files
authored
Merge pull request tronprotocol#2017 from tronprotocol/backup_dup1
checkDupWitness add syncFinish check logic
2 parents 9ebcfe6 + 6016786 commit eb4ecaa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/tron/core/services/WitnessService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ public void checkDupWitness(BlockCapsule block) {
338338
return;
339339
}
340340

341+
if (needSyncCheck) {
342+
return;
343+
}
344+
341345
if (System.currentTimeMillis() - block.getTimeStamp() > ChainConstant.BLOCK_PRODUCED_INTERVAL) {
342346
return;
343347
}

0 commit comments

Comments
 (0)