app/scripts/transaction-manager.js
// if included sets the tx status as 'confirmed'
if included sets the tx status as 'confirmed'
if included sets the tx status as ' confirmed '
checkForTxInBlock () {
    var signedTxList = this.getFilteredTxList({status: 'submitted'})
    if (!signedTxList.length) return
    signedTxList.forEach((txMeta) => {
      var txHash = txMeta.hash
      var txId = txMeta.id
      if (!txHash) {
        txMeta.err = {
          errCode: 'No hash was provided',
          message: 'We had an error while submitting this transaction, please try again.',
        }
        this.updateTx(txMeta)
        return this.setTxStatusFailed(txId)
      }
      this.txProviderUtils.query.getTransactionByHash(txHash, (err, txParams) => {
        if (err || !txParams) {
          if (!txParams) return
          txMeta.err = {
            isWarning: true,
            errorCode: err,
            message: 'There was a problem loading this transaction.',
          }
          this.updateTx(txMeta)
          return console.error(err)
        }
        if (txParams.blockNumber) {
          this.setTxStatusConfirmed(txId)
        }
      })
    })
  }
checkForTxInBlock ( ) { var signedTxList = this . getFilteredTxList ( { status : 'submitted' } ) if ( ! signedTxList . length ) return signedTxList . forEach ( ( txMeta ) => { var txHash = txMeta . hash var txId = txMeta . id if ( ! txHash ) { txMeta . err = { errCode : 'No hash was provided' , message : 'We had an error while submitting this transaction, please try again.' , } this . updateTx ( txMeta ) return this . setTxStatusFailed ( txId ) } this . txProviderUtils . query . getTransactionByHash ( txHash , ( err , txParams ) => { if ( err || ! txParams ) { if ( ! txParams ) return txMeta . err = { isWarning : true , errorCode : err , message : 'There was a problem loading this transaction.' , } this . updateTx ( txMeta ) return console . error ( err ) } if ( txParams . blockNumber ) { this . setTxStatusConfirmed ( txId ) } } ) } ) }
if included sets the tx status as 'confirmed'
if included sets the tx status as ' confirmed '