Skip to content

Commit

Permalink
fix to check if elc instance exists in updateELC()
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Nov 11, 2024
1 parent 00d5747 commit 40b47a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions relay/lcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ func (pr *Prover) updateELC(elcClientID string, includeState bool) ([]*elc.MsgUp
if err != nil {
return nil, err
}
if !res.Found {
return nil, fmt.Errorf("client not found: client_id=%v", elcClientID)
}
latestHeader, err := pr.originProver.GetLatestFinalizedHeader()
if err != nil {
return nil, err
Expand Down

0 comments on commit 40b47a8

Please sign in to comment.