rpc: minor style.

This commit is contained in:
Christopher Jeffrey 2016-08-10 17:25:58 -07:00
parent c7b725450a
commit 1b3233e948
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);