Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

fix(proposer): fix an issue in L2ExecutionEngineSyncProgress #124

Merged
merged 2 commits into from
Jan 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,14 @@ func (c *Client) L2ExecutionEngineSyncProgress(ctx context.Context) (*L2SyncProg
g.Go(func() error {
headL1Origin, err := c.L2.HeadL1Origin(ctx)
if err != nil {
return err
switch err.Error() {
case ethereum.NotFound.Error():
// There is only genesis block in the L2 execution engine.
progress.CurrentBlockID = common.Big0
return nil
default:
return err
}
}
progress.CurrentBlockID = headL1Origin.BlockID
return nil
Expand Down