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
commit 519b5e191e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}