xiaoyong931011
2023-07-22 f075619090205bc0b76cfba50131ac0bacd8ac55
src/main/java/cc/mrbird/febs/dapp/contract/andao/AndaoContractMain.java
@@ -175,7 +175,11 @@
        contract.withdrawnEventFlowable(filter).subscribe(e->{
            try {
                // 更新区块编号 TODO
                if(ObjectUtil.isEmpty(e.log.getBlockNumber())){
                    redisService.set("BNB_BLOCK_NUMBER",startBlock.intValue());
                }else{
                redisService.set("BNB_BLOCK_NUMBER",e.log.getBlockNumber().intValue());
                }
            }catch (Exception exception) {
                exception.printStackTrace();
            }