From d1b470805eb7a97abeb4c24f8916e6e7e80617f3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 17 Feb 2016 12:32:31 -0800 Subject: [PATCH] fix self references. --- lib/bcoin/blockdb.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bcoin/blockdb.js b/lib/bcoin/blockdb.js index 10229576..e597a78b 100644 --- a/lib/bcoin/blockdb.js +++ b/lib/bcoin/blockdb.js @@ -876,6 +876,7 @@ BlockDB.prototype.hasBlock = function hasBlock(hash, callback) { }; BlockDB.prototype.hasCoin = function hasCoin(hash, index, callback) { + var self = this; var id = 'u/t/' + hash + '/' + index; this.index.get(id, function(err, record) { @@ -895,6 +896,7 @@ BlockDB.prototype.hasCoin = function hasCoin(hash, index, callback) { }; BlockDB.prototype.hasTX = function hasTX(hash, callback) { + var self = this; var id = 't/t/' + hash; this.index.get(id, function(err, record) {