chaindb: minor.

This commit is contained in:
Christopher Jeffrey 2017-05-28 13:43:25 -07:00
parent 46b34677f1
commit 8763600e53
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1155,9 +1155,6 @@ ChainDB.prototype.getHashesByAddress = co(function* getHashesByAddress(addresses
address = addresses[i];
hash = Address.getHash(address);
if (!hash)
throw new Error('Not an address.');
yield this.db.keys({
gte: layout.T(hash, encoding.ZERO_HASH),
lte: layout.T(hash, encoding.MAX_HASH),