code: func (hc *HeaderChain) SetCurrentHeader(head *types.Header) {
  	rawdb.WriteHeadHeaderHash(hc.chainDb, head.Hash())
  
  	hc.currentHeader.Store(head)
  	hc.currentHeaderHash = head.Hash()
  }
docs: // SetCurrentHeader sets the current head header of the canonical chain.