also check bls aggregate signature nilness

This commit is contained in:
Jeromy 2020-05-08 11:07:57 -07:00
parent f8c15e2d2d
commit d415aa779c

View File

@ -518,6 +518,10 @@ func blockSanityChecks(h *types.BlockHeader) error {
return xerrors.Errorf("block had nil signature")
}
if h.BLSAggregate == nil {
return xerrors.Errorf("block had nil bls aggregate signature")
}
return nil
}