From da9f7a17ea2ab8910f3e1ab8ef63bb1e92821b3b Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Tue, 15 Oct 2024 11:13:33 +0800 Subject: [PATCH] fix: isGraniteActivationBlock use isGranite method --- src/main/java/io/optimism/config/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/optimism/config/Config.java b/src/main/java/io/optimism/config/Config.java index c7add94..ddbf0cc 100644 --- a/src/main/java/io/optimism/config/Config.java +++ b/src/main/java/io/optimism/config/Config.java @@ -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; } /**