From 02dc8706900696a937c9f4fe0ea720007a34fa55 Mon Sep 17 00:00:00 2001 From: niels1286 Date: Mon, 9 Jul 2018 17:02:44 +0800 Subject: [PATCH] update limit map --- .../java/io/nuls/consensus/poc/process/BlockMonitorProcess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus-module/poc/consensus-poc-base/src/main/java/io/nuls/consensus/poc/process/BlockMonitorProcess.java b/consensus-module/poc/consensus-poc-base/src/main/java/io/nuls/consensus/poc/process/BlockMonitorProcess.java index c324f390d..de026ef2a 100644 --- a/consensus-module/poc/consensus-poc-base/src/main/java/io/nuls/consensus/poc/process/BlockMonitorProcess.java +++ b/consensus-module/poc/consensus-poc-base/src/main/java/io/nuls/consensus/poc/process/BlockMonitorProcess.java @@ -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;