Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
Signed-off-by: Naohiro Yoshida <[email protected]>
  • Loading branch information
Naohiro Yoshida committed Jul 25, 2024
1 parent d1408e8 commit 2e4915d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ func setupNonNeighboringEpochHeader(
}
if !trustedValidatorSet.Contains(currentValidatorSet) {
// It is recommended to recreate the Client.
return nil, fmt.Errorf("setupNonNeighboringEpochHeader: invalid untrusted validator set: epochHeight=%d, trustedEpochHeight=%d", epochHeight, trustedEpochHeight)
err = fmt.Errorf("setupNonNeighboringEpochHeader: invalid untrusted validator set: epochHeight=%d, trustedEpochHeight=%d", epochHeight, trustedEpochHeight)
log.GetLogger().Error("[FastFinalityError]", err)
return nil, err
}

// ex) trusted(prevSaved = 200), epochHeight = 600 must be finalized from 611 to min(810,latest)
Expand Down

0 comments on commit 2e4915d

Please sign in to comment.