Merge pull request #2289 from filecoin-project/asr/consensus-fault

VerifyConsensusFault should return an error if no fault is found
This commit is contained in:
Łukasz Magiera 2020-07-07 09:29:10 +02:00 committed by GitHub
commit 4ad57fe2d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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