Skip to content

Commit

Permalink
disable reorg protection on v2_3 scroll, zkevm
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Aug 15, 2024
1 parent e4b5d86 commit af3eb42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ type EthereumKeeperRegistry struct {
func (v *EthereumKeeperRegistry) ReorgProtectionEnabled() bool {
chainId := v.client.ChainID
// reorg protection is disabled in polygon zkEVM and Scroll bc currently there is no way to get the block hash onchain
return v.version != ethereum.RegistryVersion_2_2 || (chainId != 1101 && chainId != 1442 && chainId != 2442 && chainId != 534352 && chainId != 534351)
return v.version >= ethereum.RegistryVersion_2_2 || (chainId != 1101 && chainId != 1442 && chainId != 2442 && chainId != 534352 && chainId != 534351)
}

func (v *EthereumKeeperRegistry) ChainModuleAddress() common.Address {
Expand Down

0 comments on commit af3eb42

Please sign in to comment.