code: def BlockheightCheck(self):
          
          if self.CurrentBlockheight == BC.Default().Height:
              if len(self.Peers) > 0:
                  logger.debug("Blockheight is not advancing ...")
                  next_hash = BC.Default().GetHeaderHash(self.CurrentBlockheight + 1)
                  culprit_found = False
                  for peer in self.Peers:
                      if next_hash in peer.myblockrequests:
                          culprit_found = True
                          peer.Disconnect()
                          break
  
                  # this happens when we're connecting to other nodes that are stuck themselves
                  if not culprit_found:
                      for peer in self.Peers:
                          peer.Disconnect()
          else:
              self.CurrentBlockheight = BC.Default().Height
docs: Checks the current blockheight and finds the peer that prevents advancement