rpc: minor style.
This commit is contained in:
parent
c7b725450a
commit
1b3233e948
@ -1193,7 +1193,7 @@ RPC.prototype.getblocktemplate = function getblocktemplate(args, callback) {
|
|||||||
if (block.prevBlock !== self.chain.tip.hash)
|
if (block.prevBlock !== self.chain.tip.hash)
|
||||||
return callback(new RPCError('inconclusive-not-best-prevblk'));
|
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) {
|
||||||
if (err.reason)
|
if (err.reason)
|
||||||
return callback(null, err.reason);
|
return callback(null, err.reason);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user