mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
consensus/bor: revert handle unauthorized signer in consensus.Prepare
This commit is contained in:
parent
aaf5fe32f6
commit
bec3c39b73
1 changed files with 4 additions and 4 deletions
|
|
@ -694,10 +694,10 @@ func (c *Bor) Prepare(chain consensus.ChainHeaderReader, header *types.Header) e
|
|||
|
||||
// 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()}
|
||||
}
|
||||
// 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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue