fix args normalization in getHeightRangeHashes
This commit is contained in:
parent
51a39c3a52
commit
fb0e962f30
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user