diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-26 19:03:39 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-10 03:11:45 +0800 |
commit | f8179bc5a96456c4e5a7979b955caa76e675c4f7 (patch) | |
tree | c5a2ab9c0d85eb36c51b39e746f20daac0cc55aa /src | |
parent | a4e93558aa8f230159f37a8e9726cb001451c996 (diff) | |
download | dexon-0x-contracts-f8179bc5a96456c4e5a7979b955caa76e675c4f7.tar.gz dexon-0x-contracts-f8179bc5a96456c4e5a7979b955caa76e675c4f7.tar.zst dexon-0x-contracts-f8179bc5a96456c4e5a7979b955caa76e675c4f7.zip |
Compare logs by string representation
Diffstat (limited to 'src')
-rw-r--r-- | src/mempool/mempool_watcher.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; |