limited live transactions

This commit is contained in:
Mario Colque 2014-01-23 18:58:54 -03:00
parent b3b5ba1d53
commit b4ad22b634
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ angular.module('insight.system').controller('IndexController',
var txStr = tx.txid.toString(); var txStr = tx.txid.toString();
console.log('Transaction received! ' + JSON.stringify(tx)); console.log('Transaction received! ' + JSON.stringify(tx));
if (parseInt($scope.txs.length, 10) > parseInt(TRANSACTION_DISPLAYED, 10) - 1) { if (parseInt($scope.txs.length, 10) > parseInt(TRANSACTION_DISPLAYED, 10) - 1) {
$scope.txs.slice(Math.max($scope.txs.length - TRANSACTION_DISPLAYED, 1)); $scope.txs = $scope.txs.slice(Math.max($scope.txs.length - TRANSACTION_DISPLAYED, 1));
} }
_getTransaction(txStr); _getTransaction(txStr);