From 1e79ab0373bc263f7a2aa3376cd8d98ea8557000 Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Tue, 30 Jan 2024 16:55:59 -0800 Subject: [PATCH] Update OpenBook library version and crankEventHeapLoop RPC client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Openbook dependency in pom.xml file has been updated to version 1.21.8. In the ObCrankerApplication.java, the RpcClient in the crankEventHeapLoop method has been updated to have its second parameter increased to 10. Additionally, a memo "Cranked by arcana.markets 🧙‍♂️" has been added to all crank transactions. --- pom.xml | 2 +- .../markets/arcana/obcranker/ObCrankerApplication.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 82787d9..2307ba9 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ com.mmorrell openbook - 1.21.3 + 1.21.8 diff --git a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java index 4cd30f0..69afd57 100644 --- a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java +++ b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java @@ -38,7 +38,7 @@ public static void main(String[] args) { @EventListener(ApplicationReadyEvent.class) public void crankEventHeapLoop() { - OpenBookManager manager = new OpenBookManager(new RpcClient(endpoint, 5)); + OpenBookManager manager = new OpenBookManager(new RpcClient(endpoint, 10)); Account tradingAccount = null; try { @@ -58,7 +58,8 @@ public void crankEventHeapLoop() { Optional transactionId = manager.consumeEvents( finalTradingAccount, marketId, - 8 + 8, + "Cranked by arcana.markets \uD83E\uDDD9" ); if (transactionId.isPresent()) { @@ -79,7 +80,8 @@ public void crankEventHeapLoop() { Optional transactionId = manager.consumeEvents( finalTradingAccount, market.getMarketId(), - 8 + 8, + "Cranked by arcana.markets \uD83E\uDDD9" ); if (transactionId.isPresent()) {