Skip to content

Commit

Permalink
update limit map
Browse files Browse the repository at this point in the history
  • Loading branch information
niels1286 committed Jul 9, 2018
1 parent 3c7b6fc commit 02dc870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public BlockMonitorProcess(ChainManager chainManager) {

public void doProcess() {
Block bestBlock = NulsContext.getInstance().getBestBlock();
if (bestBlock.getHeader().getHash().equals(lastBestHash)) {
if (bestBlock.getHeader().getHash().equals(lastBestHash) && bestBlock.getHeader().getTime() < (TimeService.currentTimeMillis() - RESET_TIME_INTERVAL)) {
lastBestHash = bestBlock.getHeader().getHash();
NulsContext.getServiceBean(ConsensusPocServiceImpl.class).reset();
return;
Expand Down

0 comments on commit 02dc870

Please sign in to comment.