| | |
| | | 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; |
| | | |
| | |
| | | * TRC20_USDT 同步 |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | @Async |
| | | public void usdtTc20Update() { |
| | | // 波场3秒出一个块 |
| | | trxUsdtUpdateService.monitorCoinListener(); |
| | |
| | | /** |
| | | * eth 同步 |
| | | */ |
| | | @Scheduled(cron = "0 1/20 * * * ? ") |
| | | // @Scheduled(cron = "0 1/20 * * * ? ") |
| | | public void ethUpdate() { |
| | | blockCoinService.updateEth(); |
| | | } |