Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit bfaa130

Browse files
authored
support forkid 9 (#3496)
1 parent 968568f commit bfaa130

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

state/forkid.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const (
1717
FORKID_ETROG = 7
1818
// FORKID_ELDERBERRY is the fork id 8
1919
FORKID_ELDERBERRY = 8
20+
// FORKID_9 is the fork id 9
21+
FORKID_9 = 9
2022
)
2123

2224
// ForkIDInterval is a fork id interval

synchronizer/actions/forksids.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const (
1212
ForkIDEtrog = ForkIdType(7) //nolint:gomnd
1313
// ForkIDElderberry is the forkId for Elderberry
1414
ForkIDElderberry = ForkIdType(8) //nolint:gomnd
15+
// ForkID9 is the forkId for 9
16+
ForkID9 = ForkIdType(9) //nolint:gomnd
1517
)
1618

1719
var (
@@ -20,7 +22,7 @@ var (
2022
ForksIdAll = []ForkIdType{WildcardForkId}
2123

2224
// ForksIdOnlyElderberry support only elderberry forkId
23-
ForksIdOnlyElderberry = []ForkIdType{ForkIDElderberry}
25+
ForksIdOnlyElderberry = []ForkIdType{ForkIDElderberry, ForkID9}
2426

2527
// ForksIdOnlyEtrog support only etrog forkId
2628
ForksIdOnlyEtrog = []ForkIdType{ForkIDEtrog}

synchronizer/synchronizer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func NewSynchronizer(
128128
res.syncTrustedStateExecutor = l2_shared.NewSyncTrustedStateExecutorSelector(map[uint64]syncinterfaces.SyncTrustedStateExecutor{
129129
uint64(state.FORKID_ETROG): syncTrustedStateEtrog,
130130
uint64(state.FORKID_ELDERBERRY): syncTrustedStateEtrog,
131+
uint64(state.FORKID_9): syncTrustedStateEtrog,
131132
}, res.state)
132133
}
133134
var l1checkerL2Blocks *actions.CheckL2BlockHash

0 commit comments

Comments
 (0)