Skip to content

Commit

Permalink
require debug chains
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed May 3, 2024
1 parent 85f4571 commit cbeceea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arbos/arbosState/arbosstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ func (state *ArbosState) UpgradeArbosVersion(
// these versions are left to Orbit chains for custom upgrades.

case 30:
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,
)
}
programs.Initialize(state.backingStorage.OpenSubStorage(programsSubspace))

default:
Expand Down

0 comments on commit cbeceea

Please sign in to comment.