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