Skip to content

Commit 9adc2bf

Browse files
committed
remove unused check
1 parent ea38ae7 commit 9adc2bf

File tree

6 files changed

+12
-27
lines changed

6 files changed

+12
-27
lines changed

coordinator/cmd/api/app/mock_app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (c *CoordinatorApp) MockConfig(store bool) error {
9393
MinProverVersion: "v4.4.89",
9494
Verifiers: []coordinatorConfig.AssetConfig{{
9595
AssetsPath: "",
96-
ForkName: "euclidV2",
96+
ForkName: "feynman",
9797
},
9898
}},
9999
BatchCollectionTimeSec: 60,

coordinator/conf/config.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
"chunk_collection_time_sec": 180,
99
"verifier": {
1010
"min_prover_version": "v4.4.45",
11-
"verifiers": [{
12-
"assets_path": "assets",
13-
"fork_name": "euclidV2"
14-
}]
11+
"verifiers": [
12+
{
13+
"assets_path": "assets",
14+
"fork_name": "euclidV2"
15+
},
16+
{
17+
"assets_path": "assets",
18+
"fork_name": "feynman"
19+
}
20+
]
1521
}
1622
},
1723
"db": {

coordinator/internal/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestConfig(t *testing.T) {
2323
"min_prover_version": "v4.4.45",
2424
"verifiers": [{
2525
"assets_path": "assets",
26-
"fork_name": "euclidV2"
26+
"fork_name": "feynman",
2727
}]
2828
},
2929
"max_verifier_workers": 4

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,6 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []*
295295
ChunkProofs: chunkProofs,
296296
}
297297

298-
if hardForkName == message.EuclidV2Fork {
299-
taskDetail.ForkName = message.EuclidV2ForkNameForProver
300-
} else {
301-
log.Error("unsupported hard fork name", "hard_fork_name", hardForkName)
302-
return nil, fmt.Errorf("unsupported hard fork name: %s", hardForkName)
303-
}
304-
305298
dbBatchCodecVersion := encoding.CodecVersion(dbBatch.CodecVersion)
306299
switch dbBatchCodecVersion {
307300
case encoding.CodecV3, encoding.CodecV4, encoding.CodecV6, encoding.CodecV7, encoding.CodecV8:

coordinator/internal/logic/provertask/bundle_prover_task.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,6 @@ func (bp *BundleProverTask) formatProverTask(ctx context.Context, task *orm.Prov
252252
BatchProofs: batchProofs,
253253
}
254254

255-
if hardForkName == message.EuclidV2Fork {
256-
taskDetail.ForkName = message.EuclidV2ForkNameForProver
257-
} else {
258-
log.Error("unsupported hard fork name", "hard_fork_name", hardForkName)
259-
return nil, fmt.Errorf("unsupported hard fork name: %s", hardForkName)
260-
}
261-
262255
taskDetail.BundleInfo = &message.OpenVMBundleInfo{
263256
ChainID: bp.cfg.L2.ChainID,
264257
PrevStateRoot: common.HexToHash(parentBatch.StateRoot),

coordinator/internal/logic/provertask/chunk_prover_task.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,6 @@ func (cp *ChunkProverTask) formatProverTask(ctx context.Context, task *orm.Prove
230230
PrevMsgQueueHash: common.HexToHash(chunk.PrevL1MessageQueueHash),
231231
}
232232

233-
if hardForkName == message.EuclidV2Fork {
234-
taskDetail.ForkName = message.EuclidV2ForkNameForProver
235-
} else {
236-
log.Error("unsupported hard fork name", "hard_fork_name", hardForkName)
237-
return nil, fmt.Errorf("unsupported hard fork name: %s", hardForkName)
238-
}
239-
240233
var err error
241234
taskDetailBytes, err = json.Marshal(taskDetail)
242235
if err != nil {

0 commit comments

Comments
 (0)