Merge pull request #16 from ngtuna/non-zero-coinbase

allow non-zero coinbase in block header
This commit is contained in:
Tuna 2018-05-16 23:51:57 +07:00 committed by GitHub
commit ee4379f007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,9 +277,6 @@ func (c *Clique) verifyHeader(chain consensus.ChainReader, header *types.Header,
}
// Checkpoint blocks need to enforce zero beneficiary
checkpoint := (number % c.config.Epoch) == 0
if checkpoint && header.Coinbase != (common.Address{}) {
return errInvalidCheckpointBeneficiary
}
// Nonces must be 0x00..0 or 0xff..f, zeroes enforced on checkpoints
if !bytes.Equal(header.Nonce[:], nonceAuthVote) && !bytes.Equal(header.Nonce[:], nonceDropVote) {
return errInvalidVote