Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ object SolanaChainSpecific : AbstractChainSpecific() {
private val lastKnownHeights = ConcurrentHashMap<String, Long>()
private val lastCheckedSlots = ConcurrentHashMap<String, Long>()

private val getEpochInfoReq = ChainRequest("getEpochInfo", ListParams(mapOf("commitment" to "confirmed")))

override fun getLatestBlock(api: ChainReader, upstreamId: String): Mono<BlockContainer> {
return api.read(ChainRequest("getEpochInfo", ListParams()))
return api.read(getEpochInfoReq)
.map { response ->
val epochInfo = Global.objectMapper.readValue(
response.getResult(),
Expand Down Expand Up @@ -90,7 +92,7 @@ object SolanaChainSpecific : AbstractChainSpecific() {

if (shouldCheckHeight || estimatedHeight == null) {
// Verify actual height using getEpochInfo (single call for both slot and height)
api.read(ChainRequest("getEpochInfo", ListParams()))
api.read(getEpochInfoReq)
.map { response ->
val epochInfo = Global.objectMapper.readValue(
response.getResult(),
Expand Down
Loading