diff --git a/pom.xml b/pom.xml index f55ed78..5a1a4de 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.2.2 + 3.2.5 markets.arcana @@ -36,7 +36,7 @@ com.mmorrell openbook - 1.30.3 + 1.30.5 diff --git a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java index ffe8fa4..4762933 100644 --- a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java +++ b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java @@ -82,12 +82,22 @@ public void crankEventHeapLoop() { try { manager.cacheMarkets(); for (OpenBookMarket market : manager.getOpenBookMarkets()) { - Optional transactionId = manager.consumeEvents( - finalTradingAccount, - market.getMarketId(), - 8, - "Cranked by arcana.markets \uD83E\uDDD9" - ); + Optional transactionId = Optional.empty(); + try { + transactionId = manager.consumeEvents( + finalTradingAccount, + market.getMarketId(), + 8, + "Cranked by arcana.markets \uD83E\uDDD9" + ); + } catch (Exception ex) { + log.error( + "Error cranking market [{}]: {}", + market.getMarketId().toBase58(), + ex.getMessage(), + ex + ); + } if (transactionId.isPresent()) { log.info("Cranked events [{}]: {}", market.getName(), transactionId.get());