chaindb: minor.
This commit is contained in:
parent
46b34677f1
commit
8763600e53
@ -1155,9 +1155,6 @@ ChainDB.prototype.getHashesByAddress = co(function* getHashesByAddress(addresses
|
|||||||
address = addresses[i];
|
address = addresses[i];
|
||||||
hash = Address.getHash(address);
|
hash = Address.getHash(address);
|
||||||
|
|
||||||
if (!hash)
|
|
||||||
throw new Error('Not an address.');
|
|
||||||
|
|
||||||
yield this.db.keys({
|
yield this.db.keys({
|
||||||
gte: layout.T(hash, encoding.ZERO_HASH),
|
gte: layout.T(hash, encoding.ZERO_HASH),
|
||||||
lte: layout.T(hash, encoding.MAX_HASH),
|
lte: layout.T(hash, encoding.MAX_HASH),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user