From dcbd46371872f53f1d94791c5fd9e952b5cd9ed5 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Mon, 9 Mar 2020 16:40:16 +0100 Subject: [PATCH] [fix] My Operations: Hide change operations (TX to himself) - fix #891 --- www/js/services/tx-services.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/js/services/tx-services.js b/www/js/services/tx-services.js index 67979b0e..9642d71e 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, -- GitLab