code: func (ethash *Ethash) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header) {
  	// Accumulate any block and uncle rewards and commit the final state root
  	accumulateRewards(chain.Config(), state, header, uncles)
  	header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))
  }
docs: // Finalize implements consensus.Engine, accumulating the block and uncle rewards,
  // setting the final state on the header