Skip to content

Commit

Permalink
support forkid 10 and forkid11 (#3731)
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr authored Jul 16, 2024
1 parent f008730 commit 9664818
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions state/forkid.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const (
FORKID_ELDERBERRY = 8
// FORKID_9 is the fork id 9
FORKID_9 = 9
// FORKID_10 is the fork id 10
FORKID_10 = 10
// FORKID_11 is the fork id 11
FORKID_11 = 11
)

// ForkIDInterval is a fork id interval
Expand Down
6 changes: 5 additions & 1 deletion synchronizer/actions/forksids.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const (
ForkIDElderberry = ForkIdType(8) //nolint:gomnd
// ForkID9 is the forkId for 9
ForkID9 = ForkIdType(9) //nolint:gomnd
// ForkID10 is the forkId for 10 (support more counters)
ForkID10 = ForkIdType(10) //nolint:gomnd
// ForkID11 is the forkId for 11 (support even more counters)
ForkID11 = ForkIdType(11) //nolint:gomnd
)

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

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

// ForksIdOnlyEtrog support only etrog forkId
ForksIdOnlyEtrog = []ForkIdType{ForkIDEtrog}
Expand Down

0 comments on commit 9664818

Please sign in to comment.