From d6890450025d85a37673aa38362f3abec9befc66 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Mon, 17 May 2021 16:00:27 +0530 Subject: [PATCH] Updated comparison operator --- lib/services/p2p/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/p2p/index.js b/lib/services/p2p/index.js index bef34886..d59a2cd6 100644 --- a/lib/services/p2p/index.js +++ b/lib/services/p2p/index.js @@ -426,7 +426,7 @@ P2P.prototype._setListeners = function() { P2P.prototype._setResourceFilter = function(filter) { // FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error - if (filter = false || filter.startHash = false) { + if (filter == false || filter.startHash == false) { log.error('A "startHash" field is required to retrieve headers or blocks'); } // assert(filter && filter.startHash, 'A "startHash" field is required to retrieve headers or blocks');