Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down