From a2ae05ed5f4ab36044277b0362fcb2f305fae3e3 Mon Sep 17 00:00:00 2001 From: KirillPamPam Date: Fri, 31 May 2024 13:30:54 +0400 Subject: [PATCH] Update api and fix build (#493) --- emerald-grpc | 2 +- src/main/kotlin/io/emeraldpay/dshackle/rpc/StreamHead.kt | 1 + .../emeraldpay/dshackle/upstream/lowerbound/LowerBoundData.kt | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emerald-grpc b/emerald-grpc index d8067885f..ac3d5f359 160000 --- a/emerald-grpc +++ b/emerald-grpc @@ -1 +1 @@ -Subproject commit d8067885f585346522e4f7f7f9754049e67918bd +Subproject commit ac3d5f3593bcb0349773e344a4b0815f6d5994eb diff --git a/src/main/kotlin/io/emeraldpay/dshackle/rpc/StreamHead.kt b/src/main/kotlin/io/emeraldpay/dshackle/rpc/StreamHead.kt index 72e509592..df9b14e3d 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/rpc/StreamHead.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/rpc/StreamHead.kt @@ -96,6 +96,7 @@ class StreamHead( LowerBoundType.UNKNOWN -> BlockchainOuterClass.LowerBoundType.LOWER_BOUND_UNSPECIFIED LowerBoundType.STATE -> BlockchainOuterClass.LowerBoundType.LOWER_BOUND_STATE LowerBoundType.BLOCK -> BlockchainOuterClass.LowerBoundType.LOWER_BOUND_BLOCK + LowerBoundType.TX -> BlockchainOuterClass.LowerBoundType.LOWER_BOUND_TX } } diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/lowerbound/LowerBoundData.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/lowerbound/LowerBoundData.kt index 2ce89f640..99e3e473b 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/lowerbound/LowerBoundData.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/lowerbound/LowerBoundData.kt @@ -20,7 +20,7 @@ data class LowerBoundData( } enum class LowerBoundType { - UNKNOWN, STATE, SLOT, BLOCK + UNKNOWN, STATE, SLOT, BLOCK, TX } fun BlockchainOuterClass.LowerBoundType.fromProtoType(): LowerBoundType { @@ -30,5 +30,6 @@ fun BlockchainOuterClass.LowerBoundType.fromProtoType(): LowerBoundType { BlockchainOuterClass.LowerBoundType.LOWER_BOUND_STATE -> LowerBoundType.STATE BlockchainOuterClass.LowerBoundType.LOWER_BOUND_BLOCK -> LowerBoundType.BLOCK BlockchainOuterClass.LowerBoundType.UNRECOGNIZED -> LowerBoundType.UNKNOWN + BlockchainOuterClass.LowerBoundType.LOWER_BOUND_TX -> LowerBoundType.TX } }