VerifyConsensusFault should return an error if no fault is found

This commit is contained in:
Aayush Rajasekaran 2020-07-07 01:29:16 -04:00
parent e7aec53631
commit ad980b4966

View File

@ -146,7 +146,7 @@ func (ss *syscallShim) VerifyConsensusFault(a, b, extra []byte) (*runtime.Consen
// (3) return if no consensus fault by now
if consensusFault == nil {
return consensusFault, nil
return nil, xerrors.Errorf("no consensus fault detected")
}
// else