diff --git a/consensus/beacon/consensus.go b/consensus/beacon/consensus.go index e856f4e6ce..80b85b9473 100644 --- a/consensus/beacon/consensus.go +++ b/consensus/beacon/consensus.go @@ -216,15 +216,14 @@ func (beacon *Beacon) VerifyUncles(chain consensus.ChainReader, block *types.Blo } // verifyHeader checks whether a header conforms to the consensus rules of the -// stock Ethereum consensus engine. The difference between the beacon and classic is +// stock Ethereum consensus engine. The differences between the beacon and classic are // (a) The following fields are expected to be constants: // - difficulty is expected to be 0 // - nonce is expected to be 0 // - unclehash is expected to be Hash(emptyHeader) -// to be the desired constants // // (b) we don't verify if a block is in the future anymore -// (c) the extradata is limited to 32 bytes +// (c) the extra-data is limited to 32 bytes func (beacon *Beacon) verifyHeader(chain consensus.ChainHeaderReader, header, parent *types.Header) error { // Ensure that the header's extra-data section is of a reasonable size if len(header.Extra) > 32 { diff --git a/core/blockchain.go b/core/blockchain.go index baf2f9f82f..c401500f25 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -406,7 +406,7 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis } } } - // The first thing the node will do is reconstruct the verification data for + // The first thing the node will do is to reconstruct the verification data for // the head block (ethash cache or clique voting snapshot). Might as well do // it in advance. bc.engine.VerifyHeader(bc, bc.CurrentHeader())