Skip to content

Commit 4939e8f

Browse files
authored
Support Fulu HF (#7)
1 parent 3488675 commit 4939e8f

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

module/prover/l1/beacon/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/hyperledger-labs/yui-relayer/log"
1313
)
1414

15-
var SupportedVersions = []string{"deneb", "electra"}
15+
var SupportedVersions = []string{"deneb", "electra", "fulu"}
1616

1717
type Client struct {
1818
endpoint string

module/prover/l1/config.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const (
2828
Capella = "capella"
2929
Deneb = "deneb"
3030
Electra = "electra"
31+
Fulu = "fulu"
3132
)
3233

3334
var (
@@ -61,6 +62,7 @@ var (
6162
ExecutionPayloadStateRootGindex: DenebSpec.ExecutionPayloadStateRootGindex,
6263
ExecutionPayloadBlockNumberGindex: DenebSpec.ExecutionPayloadBlockNumberGindex,
6364
}
65+
FuluSpec = ElectraSpec
6466
)
6567

6668
// NOTE the prover supports only the mainnet and minimal preset for now
@@ -106,6 +108,11 @@ func (prc *ProverConfig) getForkParameters() *lctypes.ForkParameters {
106108
Epoch: 364032,
107109
Spec: &ElectraSpec,
108110
},
111+
{
112+
Version: []byte{6, 0, 0, 0},
113+
Epoch: 411392,
114+
Spec: &FuluSpec,
115+
},
109116
},
110117
}
111118
case Minimal:
@@ -138,9 +145,15 @@ func (prc *ProverConfig) getForkParameters() *lctypes.ForkParameters {
138145
Epoch: prc.MinimalForkSched[Electra],
139146
Spec: &ElectraSpec,
140147
},
148+
{
149+
Version: common.Hex2Bytes("70000038"),
150+
Epoch: prc.MinimalForkSched[Fulu],
151+
Spec: &FuluSpec,
152+
},
141153
},
142154
}
143155
case Sepolia:
156+
// https://github.com/ChainSafe/lodestar/tree/unstable/packages/config/src/chainConfig/networks
144157
return &lctypes.ForkParameters{
145158
GenesisForkVersion: []byte{144, 0, 0, 105},
146159
Forks: []*lctypes.Fork{
@@ -169,6 +182,11 @@ func (prc *ProverConfig) getForkParameters() *lctypes.ForkParameters {
169182
Epoch: 222464,
170183
Spec: &ElectraSpec,
171184
},
185+
{
186+
Version: []byte{144, 0, 0, 117},
187+
Epoch: 272640,
188+
Spec: &FuluSpec,
189+
},
172190
},
173191
}
174192
default:

0 commit comments

Comments
 (0)