chaindb: minor.

This commit is contained in:
Christopher Jeffrey 2017-07-31 14:50:38 -07:00
parent 34421c1653
commit 1bbe36ec1a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1064,11 +1064,11 @@ ChainDB.prototype.getTX = async function getTX(hash) {
* @returns {Promise} - Returns Boolean. * @returns {Promise} - Returns Boolean.
*/ */
ChainDB.prototype.hasTX = function hasTX(hash) { ChainDB.prototype.hasTX = async function hasTX(hash) {
if (!this.options.indexTX) if (!this.options.indexTX)
return Promise.resolve(false); return false;
return this.db.has(layout.t(hash)); return await this.db.has(layout.t(hash));
}; };
/** /**