Skip to content

Commit

Permalink
Merge pull request #5407 from filecoin-project/chore/block-miner-addr…
Browse files Browse the repository at this point in the history
…-check

explicitly check miner address protocol
  • Loading branch information
Stebalien authored Jan 25, 2021
2 parents a2b91a5 + 7c9b9e3 commit 519b5e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 519b5e1

Please sign in to comment.