From 96648183b478ed9de82122c40227bf887c37d4bd Mon Sep 17 00:00:00 2001 From: Joan Esteban <129153821+joanestebanr@users.noreply.github.com> Date: Tue, 16 Jul 2024 10:13:55 +0200 Subject: [PATCH] support forkid 10 and forkid11 (#3731) --- state/forkid.go | 4 ++++ synchronizer/actions/forksids.go | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/state/forkid.go b/state/forkid.go index ed035a53e1..bfd78c6c91 100644 --- a/state/forkid.go +++ b/state/forkid.go @@ -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 diff --git a/synchronizer/actions/forksids.go b/synchronizer/actions/forksids.go index 1383ef98c5..e379dcb136 100644 --- a/synchronizer/actions/forksids.go +++ b/synchronizer/actions/forksids.go @@ -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 ( @@ -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}