Skip to content

Commit

Permalink
Update api and fix build (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillPamPam authored May 31, 2024
1 parent 71d68e8 commit a2ae05e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emerald-grpc
1 change: 1 addition & 0 deletions src/main/kotlin/io/emeraldpay/dshackle/rpc/StreamHead.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data class LowerBoundData(
}

enum class LowerBoundType {
UNKNOWN, STATE, SLOT, BLOCK
UNKNOWN, STATE, SLOT, BLOCK, TX
}

fun BlockchainOuterClass.LowerBoundType.fromProtoType(): LowerBoundType {
Expand All @@ -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
}
}

0 comments on commit a2ae05e

Please sign in to comment.