Skip to content

Commit

Permalink
Finalize ArbOS 20
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Jan 28, 2024
1 parent c7294a0 commit 284a561
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions arbos/arbosState/arbosstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,18 +318,10 @@ func (state *ArbosState) UpgradeArbosVersion(
}
// ArbOS versions 12 through 19 are left to Orbit chains for custom upgrades.
case 20:
if !chainConfig.DebugMode() {
// This upgrade isn't finalized so we only want to support it for testing
return fmt.Errorf(
"the chain is upgrading to unsupported ArbOS version %v, %w",
nextArbosVersion,
ErrFatalNodeOutOfDate,
)
}
// Update Brotli compression level for fast compression from 0 to 1
ensure(state.SetBrotliCompressionLevel(1))
default:
if nextArbosVersion >= 12 && state.arbosVersion < 20 {
if nextArbosVersion >= 12 && nextArbosVersion <= 19 {
// ArbOS versions 12 through 19 are left to Orbit chains for custom upgrades.
} else {
return fmt.Errorf(
Expand Down

0 comments on commit 284a561

Please sign in to comment.