Skip to content

Commit

Permalink
modify arbosstate.go to allow for upgrade to arbOS version 35 (#216)
Browse files Browse the repository at this point in the history
* modify arbosstate.go to allow for upgrade to arbOS version 35

* Fix lint

* Modify the chain config during the ArbOS upgrade

---------

Co-authored-by: sveitser <[email protected]>
  • Loading branch information
zacshowa and sveitser committed Sep 3, 2024
1 parent b56dc56 commit a934010
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions arbos/arbosState/arbosstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func OpenArbosState(stateDB vm.StateDB, burner burn.Burner) (*ArbosState, error)
}
return &ArbosState{
arbosVersion,
31,
31,
35,
35,
backingStorage.OpenStorageBackedUint64(uint64(upgradeVersionOffset)),
backingStorage.OpenStorageBackedUint64(uint64(upgradeTimestampOffset)),
backingStorage.OpenStorageBackedAddress(uint64(networkFeeAccountOffset)),
Expand Down Expand Up @@ -324,6 +324,16 @@ func (state *ArbosState) UpgradeArbosVersion(
ensure(params.UpgradeToVersion(2))
ensure(params.Save())

case 32, 33, 34:
// these versions are left to Orbit chains for custom upgrades.

case 35:
// Espresso marketplace compatible ArbOS version.
chainConfig.ArbitrumChainParams.EnableEspresso = true

case 36, 37, 38, 39:
// these versions are left to Orbit chains for custom upgrades.

default:
return fmt.Errorf(
"the chain is upgrading to unsupported ArbOS version %v, %w",
Expand Down

0 comments on commit a934010

Please sign in to comment.