code: def HandleBlockHeadersReceived(self, inventory):
          
          try:
              inventory = IOHelper.AsSerializableWithType(inventory, 'neo.Network.Payloads.HeadersPayload.HeadersPayload')
              if inventory is not None:
                  logger.debug(f"{self.prefix} received headers")
                  self.heart_beat(HEARTBEAT_HEADERS)
                  BC.Default().AddHeaders(inventory.Headers)
  
          except Exception as e:
              logger.debug(f"Error handling Block headers {e}")
docs: Process a block header inventory payload.
  
          Args:
              inventory (neo.Network.Inventory):