code: func WriteHeadHeaderHash(db ethdb.Writer, hash common.Hash) {
  	if err := db.Put(headHeaderKey, hash.Bytes()); err != nil {
  		log.Crit("Failed to store last header's hash", "err", err)
  	}
  }
docs: // WriteHeadHeaderHash stores the hash of the current canonical head header.