code: func (p *MemoryPool) CommitUpdate(transactionData []tms.TransactionData) error {
  	p.mutex.Lock()
  	defer p.mutex.Unlock()
  
  	err := p.checkUpdate(transactionData)
  	if err != nil {
  		return err
  	}
  
  	for _, td := range transactionData {
  		p.commitAction(td.Tx.GetPlainAction(), td.TxID)
  		p.history[td.TxID] = cloneTransaction(td.Tx)
  	}
  
  	return nil
  }
docs: // CommitUpdate commits transaction data into the pool.