code: func (p *peer) SetHead(hash common.Hash, td *big.Int) {
  	p.lock.Lock()
  	defer p.lock.Unlock()
  
  	copy(p.head[:], hash[:])
  	p.td.Set(td)
  }
docs: // SetHead updates the head hash and total difficulty of the peer.