diff --git a/lib/blockchain/chaindb.js b/lib/blockchain/chaindb.js index 5fe9a178..7c20b52e 100644 --- a/lib/blockchain/chaindb.js +++ b/lib/blockchain/chaindb.js @@ -1064,11 +1064,11 @@ ChainDB.prototype.getTX = async function getTX(hash) { * @returns {Promise} - Returns Boolean. */ -ChainDB.prototype.hasTX = function hasTX(hash) { +ChainDB.prototype.hasTX = async function hasTX(hash) { 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)); }; /**