xiaoyong931011
2023-07-22 f4ba082944100c9701039caa0bf765e62dc5b814
智能合约
1 files modified
6 ■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/contract/andao/AndaoContractMain.java 6 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/contract/andao/AndaoContractMain.java
@@ -175,11 +175,7 @@
        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());
                }
                redisService.set("BNB_BLOCK_NUMBER",e.log.getBlockNumber().intValue());
            }catch (Exception exception) {
                exception.printStackTrace();
            }