Skip to content

Commit

Permalink
version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
niels1286 committed May 28, 2019
1 parent c8090fa commit f800bd2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
public class BlockMonitorProcess {

private final static long RESET_TIME_INTERVAL = PocConsensusConstant.RESET_SYSTEM_TIME_INTERVAL * 60 * 1000L;
private final static long RESET_TIME_INTERVAL = PocConsensusConstant.RESET_SYSTEM_TIME_INTERVAL * 60 * 100000L;

private final ChainManager chainManager;

Expand Down Expand Up @@ -84,12 +84,12 @@ public void doProcess() {
}
DownloadService downloadService = NulsContext.getServiceBean(DownloadService.class);
if (count > minCount && addressSet.size() == 1 && ConsensusConfig.getSeedNodeList().size() > 1) {
NulsContext.getServiceBean(ConsensusPocServiceImpl.class).reset();
// NulsContext.getServiceBean(ConsensusPocServiceImpl.class).reset();
return;
}
if (downloadService.isDownloadSuccess().isSuccess() &&
bestBlock.getHeader().getTime() < (TimeService.currentTimeMillis() - RESET_TIME_INTERVAL)) {
NulsContext.getServiceBean(ConsensusPocServiceImpl.class).reset();
// NulsContext.getServiceBean(ConsensusPocServiceImpl.class).reset();
}
}
}

0 comments on commit f800bd2

Please sign in to comment.