Skip to content

Commit

Permalink
support forkid 9 (#3496)
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr authored Mar 25, 2024
1 parent 968568f commit bfaa130
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions state/forkid.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const (
FORKID_ETROG = 7
// FORKID_ELDERBERRY is the fork id 8
FORKID_ELDERBERRY = 8
// FORKID_9 is the fork id 9
FORKID_9 = 9
)

// ForkIDInterval is a fork id interval
Expand Down
4 changes: 3 additions & 1 deletion synchronizer/actions/forksids.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const (
ForkIDEtrog = ForkIdType(7) //nolint:gomnd
// ForkIDElderberry is the forkId for Elderberry
ForkIDElderberry = ForkIdType(8) //nolint:gomnd
// ForkID9 is the forkId for 9
ForkID9 = ForkIdType(9) //nolint:gomnd
)

var (
Expand All @@ -20,7 +22,7 @@ var (
ForksIdAll = []ForkIdType{WildcardForkId}

// ForksIdOnlyElderberry support only elderberry forkId
ForksIdOnlyElderberry = []ForkIdType{ForkIDElderberry}
ForksIdOnlyElderberry = []ForkIdType{ForkIDElderberry, ForkID9}

// ForksIdOnlyEtrog support only etrog forkId
ForksIdOnlyEtrog = []ForkIdType{ForkIDEtrog}
Expand Down
1 change: 1 addition & 0 deletions synchronizer/synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func NewSynchronizer(
res.syncTrustedStateExecutor = l2_shared.NewSyncTrustedStateExecutorSelector(map[uint64]syncinterfaces.SyncTrustedStateExecutor{
uint64(state.FORKID_ETROG): syncTrustedStateEtrog,
uint64(state.FORKID_ELDERBERRY): syncTrustedStateEtrog,
uint64(state.FORKID_9): syncTrustedStateEtrog,
}, res.state)
}
var l1checkerL2Blocks *actions.CheckL2BlockHash
Expand Down

0 comments on commit bfaa130

Please sign in to comment.