Helius
2021-04-22 95ed8373550efecd0f75b10bae580ad3ac095a5d
src/main/java/com/xcong/excoin/quartz/job/BlockCoinUpdateJob.java
@@ -6,6 +6,7 @@
import com.xcong.excoin.modules.member.dao.MemberCoinAddressDao;
import com.xcong.excoin.modules.member.entity.MemberCoinAddressEntity;
import com.xcong.excoin.utils.RedisUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Async;
@@ -21,6 +22,7 @@
 * @author wzy
 * @date 2020-07-02
 **/
@Slf4j
@Component
@ConditionalOnProperty(prefix = "app", name = "block-job", havingValue = "true")
public class BlockCoinUpdateJob {
@@ -40,8 +42,10 @@
    @Scheduled(cron = "0/3 * * * * ? ")
    @Async
    public void usdtTc20Update() {
        log.info("开始执行");
        // 波场3秒出一个块
        trxUsdtUpdateService.monitorCoinListener();
        log.info("结束执行");
    }
    /**
@@ -56,7 +60,7 @@
    /**
     * eth 同步
     */
    @Scheduled(cron = "0 1/20 * * * ? ")
//    @Scheduled(cron = "0 1/20 * * * ? ")
    public void ethUpdate() {
        blockCoinService.updateEth();
    }