Merge pull request #65 from mvayngrib/argsparsefix

fix args normalization in getHeightRangeHashes
This commit is contained in:
Christopher Jeffrey (JJ) 2016-04-26 19:12:09 -07:00
commit f29aec13f4

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