From 1b3233e9488132d0752d7234ebc3078fee7b5eeb Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 10 Aug 2016 17:25:58 -0700 Subject: [PATCH] rpc: minor style. --- lib/bcoin/http/rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/http/rpc.js b/lib/bcoin/http/rpc.js index 832426e4..9cb9002f 100644 --- a/lib/bcoin/http/rpc.js +++ b/lib/bcoin/http/rpc.js @@ -1193,7 +1193,7 @@ RPC.prototype.getblocktemplate = function getblocktemplate(args, callback) { if (block.prevBlock !== self.chain.tip.hash) return callback(new RPCError('inconclusive-not-best-prevblk')); - return self.chain.add(block, function(err) { + return this.chain.add(block, function(err) { if (err) { if (err.reason) return callback(null, err.reason);