mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
beacon/params: explicitly handle Fulu fork indices
This commit is contained in:
parent
657c99f116
commit
74c127d138
1 changed files with 6 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ func StateIndexFinalBlock(forkName string) uint64 {
|
|||
switch forkName {
|
||||
case "bellatrix", "capella", "deneb":
|
||||
return StateIndexFinalBlockOld
|
||||
case "electra", "fulu":
|
||||
return StateIndexFinalBlockElectra
|
||||
default:
|
||||
return StateIndexFinalBlockElectra
|
||||
}
|
||||
|
|
@ -60,6 +62,8 @@ func StateIndexSyncCommittee(forkName string) uint64 {
|
|||
switch forkName {
|
||||
case "bellatrix", "capella", "deneb":
|
||||
return StateIndexSyncCommitteeOld
|
||||
case "electra", "fulu":
|
||||
return StateIndexSyncCommitteeElectra
|
||||
default:
|
||||
return StateIndexSyncCommitteeElectra
|
||||
}
|
||||
|
|
@ -68,6 +72,8 @@ func StateIndexNextSyncCommittee(forkName string) uint64 {
|
|||
switch forkName {
|
||||
case "bellatrix", "capella", "deneb":
|
||||
return StateIndexNextSyncCommitteeOld
|
||||
case "electra", "fulu":
|
||||
return StateIndexNextSyncCommitteeElectra
|
||||
default:
|
||||
return StateIndexNextSyncCommitteeElectra
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue