diff --git a/www/js/services/tx-services.js b/www/js/services/tx-services.js index 67979b0ec1f238aca5878628e9c9541631b7a2e6..9642d71e411419442305f664e104a737d0500d9f 100644 --- a/www/js/services/tx-services.js +++ b/www/js/services/tx-services.js @@ -64,6 +64,7 @@ angular.module('cesium.tx.services', ['ngApi', 'cesium.bma.services', return sum - outputAmount; } } + } // Complex unlock condition, on the issuer pubkey @@ -95,8 +96,8 @@ angular.module('cesium.tx.services', ['ngApi', 'cesium.bma.services', var time = tx.time || tx.blockstampTime; // Avoid duplicated tx, or tx to him self - var txKey = amount + ':' + tx.hash + ':' + time; - if (!processedTxMap[txKey]) { + var txKey = (amount !== 0) && amount + ':' + tx.hash + ':' + time; + if (txKey && !processedTxMap[txKey]) { processedTxMap[txKey] = true; // Mark as processed var newTx = { time: time,