Always validate VRFs, even when insecure post validation is enabled

We always generate them, we might as well validate them.
This commit is contained in:
Steven Allen 2020-10-21 17:11:09 -07:00
parent 70c39fe78c
commit 4a550d12d4

View File

@ -1731,9 +1731,6 @@ func (syncer *Syncer) collectChain(ctx context.Context, ts *types.TipSet) error
}
func VerifyElectionPoStVRF(ctx context.Context, worker address.Address, rand []byte, evrf []byte) error {
if build.InsecurePoStValidation {
return nil
}
return gen.VerifyVRF(ctx, worker, rand, evrf)
}