Commit 90225ca1 authored by jianhua.zhang's avatar jianhua.zhang

块抓取微调

parent a54d2be2
......@@ -112,7 +112,8 @@ public class LastBlockServiceImpl implements LastBlockService {
bg = BigDecimalUtil.getAdd(new BigDecimal(lastBlock.getCurBlockNum()), new BigDecimal(Constant.FIFTY_THOUSAND));
} else {
startNum = Long.parseLong(redisBlockNum);
if (startNum - Constant.THRESHOLD > 0) {
long size = this.stringRedisTemplate.opsForList().size(Constant.BLOCK_NUM_LIST_KEY);
if (size - Constant.THRESHOLD > 0) {
return;
}
bg = BigDecimalUtil.getAdd(new BigDecimal(redisBlockNum), new BigDecimal(Constant.FIFTY_THOUSAND));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment