code: def serviceQueues(self, limit=None):
          
          # TODO should handle SuspiciousNode here
          r = self.dequeue_pre_prepares()
          r += self.inBoxRouter.handleAllSync(self.inBox, limit)
          r += self.send_3pc_batch()
          r += self._serviceActions()
          return r
docs: Process `limit` number of messages in the inBox.
  
          :param limit: the maximum number of messages to process
          :return: the number of messages successfully processed