From 1fb35d107be1a20fb066144440ed982c824dc2d3 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Fri, 27 Sep 2019 17:59:39 +0100 Subject: [PATCH] Fix notify operator call --- lib/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins.js b/lib/plugins.js index 16c19da3..7f0cb6ae 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -347,7 +347,7 @@ function plugins (settings, deviceId) { if (!transactionNotificationsEnabled()) return Promise.resolve() const isCashOut = tx.direction === 'cashOut' - const zeroConf = isZeroConf(tx) + const zeroConf = isCashOut && isZeroConf(tx) // 0-conf cash-out should only send notification on redemption if (zeroConf && isCashOut && !rec.isRedemption && !rec.error) return Promise.resolve()