Skip to content

Commit

Permalink
Merge pull request #36 from datachainlab/fix-query-client
Browse files Browse the repository at this point in the history
Fix to check if elc instance exists in `updateELC()`

Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele authored Nov 11, 2024
2 parents 00d5747 + 40b47a8 commit 83b85af
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 83b85af

Please sign in to comment.