Helius
2021-04-14 f3948fa31158c7b7dea3b038e01c43ce54c55a1c
src/main/java/com/xcong/excoin/quartz/job/BlockCoinUpdateJob.java
@@ -8,6 +8,7 @@
import com.xcong.excoin.utils.RedisUtils;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -37,6 +38,7 @@
     * TRC20_USDT 同步
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    @Async
    public void usdtTc20Update() {
        // 波场3秒出一个块
        trxUsdtUpdateService.monitorCoinListener();
@@ -54,7 +56,7 @@
    /**
     * eth 同步
     */
    @Scheduled(cron = "0 1/20 * * * ? ")
//    @Scheduled(cron = "0 1/20 * * * ? ")
    public void ethUpdate() {
        blockCoinService.updateEth();
    }