From 02d470892f68abb5f92a9b79b4a581979288f2f3 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 26 Oct 2017 14:03:39 +0300 Subject: Compare logs by string representation --- src/mempool/mempool_watcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mempool/mempool_watcher.ts b/src/mempool/mempool_watcher.ts index be598c28f..7a485172d 100644 --- a/src/mempool/mempool_watcher.ts +++ b/src/mempool/mempool_watcher.ts @@ -36,8 +36,8 @@ export class MempoolWatcher { // that's why we just ignore those cases. return; } - const removedEvents = _.differenceBy(this._lastMempoolEvents, pendingEvents, _.isEqual); - const newEvents = _.differenceBy(pendingEvents, this._lastMempoolEvents, _.isEqual); + const removedEvents = _.differenceBy(this._lastMempoolEvents, pendingEvents, JSON.stringify); + const newEvents = _.differenceBy(pendingEvents, this._lastMempoolEvents, JSON.stringify); let isRemoved = true; this._emitDifferences(removedEvents, isRemoved); isRemoved = false; -- cgit v1.2.3