code: def processCommit(self, commit: Commit, sender: str) -> None:
          
          self.logger.debug("{} received COMMIT{} from {}".format(
              self, (commit.viewNo, commit.ppSeqNo), sender))
  
          if self.validateCommit(commit, sender):
              self.stats.inc(TPCStat.CommitRcvd)
              self.addToCommits(commit, sender)
              self.logger.debug("{} processed incoming COMMIT{}".format(
                  self, (commit.viewNo, commit.ppSeqNo)))
docs: Validate and process the COMMIT specified.
          If validation is successful, return the message to the node.
  
          :param commit: an incoming COMMIT message
          :param sender: name of the node that sent the COMMIT