Revert "consensus/bor: handle unauthorized signer in consensus.Prepare (#651)"

This reverts commit 9ce8c7de75a1b5021bb6f2b8086e813c8244b22c.
This commit is contained in:
Raneet Debnath 2023-03-30 08:33:31 +05:30
parent bec3c39b73
commit 7bd393fc68
No known key found for this signature in database
GPG key ID: F5C0ADBB4933AD2C

View file

@ -692,13 +692,6 @@ func (c *Bor) Prepare(chain consensus.ChainHeaderReader, header *types.Header) e
currentSigner := *c.authorizedSigner.Load()
// Bail out early if we're unauthorized to sign a block. This check also takes
// place before block is signed in `Seal`.
// if !snap.ValidatorSet.HasAddress(currentSigner.signer) {
// // Check the UnauthorizedSignerError.Error() msg to see why we pass number-1
// return &UnauthorizedSignerError{number - 1, currentSigner.signer.Bytes()}
// }
// Set the correct difficulty
header.Difficulty = new(big.Int).SetUint64(Difficulty(snap.ValidatorSet, currentSigner.signer))