Skip to content

Commit 0b00789

Browse files
ranchalpjonastheis
andauthored
Update consensus/system_contract/consensus.go
Co-authored-by: Jonas Theis <[email protected]>
1 parent b914e00 commit 0b00789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus/system_contract/consensus.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (s *SystemContract) verifyHeader(chain consensus.ChainHeaderReader, header
114114
return errInvalidNonce
115115
}
116116
// Check that the BlockSignature contains signature if block is not requested
117-
if header.Number.Cmp(big.NewInt(0)) != 0 && len(header.BlockSignature) != extraSeal && !header.Requested {
117+
if !header.Requested && header.Number.Cmp(big.NewInt(0)) != 0 && len(header.BlockSignature) != extraSeal {
118118
return errMissingSignature
119119
}
120120
// Ensure that the mix digest is zero

0 commit comments

Comments
 (0)