Updated comparison operator

This commit is contained in:
tripathyr 2021-05-17 16:00:27 +05:30 committed by GitHub
parent 1efed08a39
commit d689045002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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