diff --git a/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java b/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java index 9dee436..014886b 100644 --- a/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java +++ b/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java @@ -299,7 +299,7 @@ public class CrowdfundingService extends BaseComponent { throw new RuntimeException(e.getMessage()); } } - if(send.getError() != null && send.getError().getMessage() != null){ + if(send != null && send.getError() != null && send.getError().getMessage() != null){ log.info("扫描块失败(检查节点是否被限制) out {} ,{}, {}", startBlock, endBlock, send.getError().getMessage()); return null; } diff --git a/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java b/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java index d59412e..38fdc77 100644 --- a/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java +++ b/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java @@ -23,7 +23,7 @@ public class CrowdfundingTask { private CrowdfundingService crowdfundingService; /** - * 节点交易确认 10分钟执行一次 + * 众筹交易确认 10分钟执行一次 */ @Scheduled(initialDelay = 15_000, fixedDelay = 1000 * 60 * 10) public void exec() {