Skip to content

Commit

Permalink
fix: isGraniteActivationBlock use isGranite method
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod committed Oct 15, 2024
1 parent 538d5b0 commit da9f7a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/optimism/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ public boolean isGranite(BigInteger time) {
* @return true if the time is the granite activation block, otherwise false.
*/
public boolean isGraniteActivationBlock(BigInteger time) {
return isFjord(time)
return isGranite(time)
&& time.compareTo(blockTime) >= 0
&& time.subtract(blockTime).compareTo(fjordTime) < 0;
&& time.subtract(blockTime).compareTo(graniteTime) < 0;
}

/**
Expand Down

0 comments on commit da9f7a1

Please sign in to comment.