From e37c2a98eafd0aa0e145160d28f96d871e412ad6 Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Fri, 8 Dec 2023 20:39:14 -0800 Subject: [PATCH] OBv2: Add LeafNode --- openbook/src/test/java/OpenBookTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbook/src/test/java/OpenBookTest.java b/openbook/src/test/java/OpenBookTest.java index b664bb4..5b82e91 100644 --- a/openbook/src/test/java/OpenBookTest.java +++ b/openbook/src/test/java/OpenBookTest.java @@ -63,9 +63,12 @@ public void orderBookTest() throws RpcException, IOException { .forEach(anyNode -> { log.info("Leaf node: {}", anyNode); }); + log.info("Bids:"); bookSide.getLeafNodes().forEach(leafNode -> { - log.info("Leaf: {}", leafNode); +// log.info("Leaf: {}", leafNode); // log.info("Hex: {}", ByteUtils.bytesToHex(leafNode.getKey())); + log.info("Price: {}, Size: {}, Trader: {}", leafNode.getPrice(), leafNode.getQuantity(), + leafNode.getOwner()); }); } }