KKSU
2024-05-10 deac35d1ac06d89660a2c8ebe3596fb49e9afced
src/main/java/cc/mrbird/febs/job/ChainRunner.java
@@ -9,12 +9,14 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
import java.math.BigInteger;
@Slf4j
@Component
@ConditionalOnProperty(prefix = "system", name = "chain-listener", havingValue = "true")
public class ChainRunner implements ApplicationRunner {
@@ -40,7 +42,7 @@
            block = (BigInteger) incrementObj;
        }
        BigInteger section = BigInteger.valueOf(50);
        BigInteger section = BigInteger.valueOf(5000);
        BigInteger subtract = newest.subtract(block);
        log.info("监听:[{} - {} - {}]", newest,block,newest.subtract(block).compareTo(section) > -1);
        while (newest.subtract(block).compareTo(section) > -1) {