xiaoyong931011
2023-08-01 8e6989a4472063a2edb5e63c16610ccf8450a562
src/main/java/cc/mrbird/febs/dapp/contract/andao/AndaoContractInit.java
@@ -3,6 +3,7 @@
import cc.mrbird.febs.common.service.RedisService;
import cc.mrbird.febs.dapp.mapper.DataDictionaryCustomMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@@ -10,6 +11,7 @@
@Component
@ConditionalOnProperty(prefix = "system", name = "quartz-job", havingValue = "true")
public class AndaoContractInit {
    @Autowired
@@ -25,7 +27,7 @@
    @PostConstruct
    public void init(){
        // 设置起始区块编号 TODO
        BigInteger start = new BigInteger("29629081");
        BigInteger start = new BigInteger("30210521");
        // 需要打开 获取最新区块编号
        Object bnb_block_number = redisService.get("BNB_BLOCK_NUMBER");
        if(bnb_block_number !=null){