Skip to content

Commit

Permalink
allow non-zero coinbase in block header
Browse files Browse the repository at this point in the history
  • Loading branch information
ngtuna committed May 16, 2018
1 parent f6bb19d commit 034f773
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions consensus/clique/clique.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 034f773

Please sign in to comment.