fix args normalization in getHeightRangeHashes

This commit is contained in:
Mark Vayngrib 2016-04-25 17:02:47 -04:00
parent 51a39c3a52
commit fb0e962f30

View File

@ -1327,6 +1327,10 @@ TXDB.prototype.getHeightRangeHashes = function getHeightRangeHashes(address, opt
if (typeof address === 'function') {
callback = address;
address = null;
} else if (address && typeof address === 'object') {
callback = options;
options = address;
address = null;
}
callback = utils.ensure(callback);