Skip to content

Commit 2ccc361

Browse files
Merge branch 'master' into CalcBlobFee
2 parents 43ca75c + 42684dc commit 2ccc361

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

execution/gethexec/executionengine.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ import (
3737
"github.com/ethereum/go-ethereum/core/types"
3838
"github.com/ethereum/go-ethereum/log"
3939
"github.com/ethereum/go-ethereum/metrics"
40+
"github.com/ethereum/go-ethereum/params"
4041

4142
"github.com/offchainlabs/nitro/arbos"
4243
"github.com/offchainlabs/nitro/arbos/arbosState"
4344
"github.com/offchainlabs/nitro/arbos/arbostypes"
4445
"github.com/offchainlabs/nitro/arbos/l1pricing"
4546
"github.com/offchainlabs/nitro/arbos/programs"
4647
"github.com/offchainlabs/nitro/arbutil"
47-
"github.com/offchainlabs/nitro/cmd/chaininfo"
4848
"github.com/offchainlabs/nitro/execution"
4949
"github.com/offchainlabs/nitro/util/arbmath"
5050
"github.com/offchainlabs/nitro/util/sharedmetrics"
@@ -1005,17 +1005,16 @@ func (s *ExecutionEngine) digestMessageWithBlockMutex(msgIdxToDigest arbutil.Mes
10051005
timestamp = time.Unix(int64(timestampInt), 0)
10061006
timeUntilUpgrade = time.Until(timestamp)
10071007
}
1008-
maxSupportedVersion := chaininfo.ArbitrumDevTestChainConfig().ArbitrumChainParams.InitialArbOSVersion
10091008
logLevel := log.Warn
10101009
if timeUntilUpgrade < time.Hour*24 {
10111010
logLevel = log.Error
10121011
}
1013-
if version > maxSupportedVersion {
1012+
if version > params.MaxArbosVersionSupported {
10141013
logLevel(
10151014
"you need to update your node to the latest version before this scheduled ArbOS upgrade",
10161015
"timeUntilUpgrade", timeUntilUpgrade,
10171016
"upgradeScheduledFor", timestamp,
1018-
"maxSupportedArbosVersion", maxSupportedVersion,
1017+
"maxSupportedArbosVersion", params.MaxArbosVersionSupported,
10191018
"pendingArbosUpgradeVersion", version,
10201019
)
10211020
}

0 commit comments

Comments
 (0)