Merge pull request #5407 from filecoin-project/chore/block-miner-addr-check

explicitly check miner address protocol
This commit is contained in:
Steven Allen
2021-01-25 10:23:54 -08:00
committed by GitHub
+4
View File
@@ -676,6 +676,10 @@ func blockSanityChecks(h *types.BlockHeader) error {
return xerrors.Errorf("block had nil bls aggregate signature")
}
if h.Miner.Protocol() != address.ID {
return xerrors.Errorf("block had non-ID miner address")
}
return nil
}