Skip to content

Commit

Permalink
add evmos genesis block for archive detection (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
msizov authored May 15, 2024
1 parent b468b40 commit 55ee066
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import kotlin.math.max

private const val ARBITRUM_NITRO_BLOCK = "0x152DD47" // 22207815
private const val OPTIMISM_BEDROCK_BLOCK = "0x645C277" // 105235063
private const val EVMOS_GENESIS_BLOCK = "0xe54d" // 58701

private const val EARLIEST_BLOCK = "0x2710" // 10000

class EthereumArchiveBlockNumberReader(
Expand All @@ -31,6 +33,7 @@ class EthereumArchiveBlockNumberReader(
return when (chain) {
Chain.ARBITRUM__MAINNET -> ARBITRUM_NITRO_BLOCK
Chain.OPTIMISM__MAINNET -> OPTIMISM_BEDROCK_BLOCK
Chain.EVMOS__MAINNET -> EVMOS_GENESIS_BLOCK
else -> EARLIEST_BLOCK
}.run { Mono.just(this) }
}
Expand Down

0 comments on commit 55ee066

Please sign in to comment.