Skip to content

Commit

Permalink
fix to fail activate-client if update does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Jun 26, 2024
1 parent e9082fe commit d69b477
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions relay/lcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ func activateClient(pathEnd *core.PathEnd, src, dst *core.ProvableChain) error {
updates, err := srcProver.updateELC(srcProver.config.ElcClientId, true)
if err != nil {
return err
} else if len(updates) == 0 {
return fmt.Errorf("no available updates: elc_client_id=%v", srcProver.config.ElcClientId)
}

signer, err := dst.Chain.GetAddress()
Expand Down

0 comments on commit d69b477

Please sign in to comment.