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');