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 {
|
switch forkName {
|
||||||
case "bellatrix", "capella", "deneb":
|
case "bellatrix", "capella", "deneb":
|
||||||
return StateIndexFinalBlockOld
|
return StateIndexFinalBlockOld
|
||||||
|
case "electra", "fulu":
|
||||||
|
return StateIndexFinalBlockElectra
|
||||||
default:
|
default:
|
||||||
return StateIndexFinalBlockElectra
|
return StateIndexFinalBlockElectra
|
||||||
}
|
}
|
||||||
|
|
@ -60,6 +62,8 @@ func StateIndexSyncCommittee(forkName string) uint64 {
|
||||||
switch forkName {
|
switch forkName {
|
||||||
case "bellatrix", "capella", "deneb":
|
case "bellatrix", "capella", "deneb":
|
||||||
return StateIndexSyncCommitteeOld
|
return StateIndexSyncCommitteeOld
|
||||||
|
case "electra", "fulu":
|
||||||
|
return StateIndexSyncCommitteeElectra
|
||||||
default:
|
default:
|
||||||
return StateIndexSyncCommitteeElectra
|
return StateIndexSyncCommitteeElectra
|
||||||
}
|
}
|
||||||
|
|
@ -68,6 +72,8 @@ func StateIndexNextSyncCommittee(forkName string) uint64 {
|
||||||
switch forkName {
|
switch forkName {
|
||||||
case "bellatrix", "capella", "deneb":
|
case "bellatrix", "capella", "deneb":
|
||||||
return StateIndexNextSyncCommitteeOld
|
return StateIndexNextSyncCommitteeOld
|
||||||
|
case "electra", "fulu":
|
||||||
|
return StateIndexNextSyncCommitteeElectra
|
||||||
default:
|
default:
|
||||||
return StateIndexNextSyncCommitteeElectra
|
return StateIndexNextSyncCommitteeElectra
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue