chaindb: minor.
This commit is contained in:
parent
34421c1653
commit
1bbe36ec1a
@ -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));
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user