refactor: lint.

This commit is contained in:
Christopher Jeffrey 2017-02-28 10:08:58 -08:00
parent a4201e6bd5
commit e9d87dcd98
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 5 additions and 2 deletions

View File

@ -9,6 +9,9 @@
var policy = require('../protocol/policy');
var util = require('../utils/util');
var Script = require('../script/script');
var BufferReader = require('../utils/reader');
var StaticWriter = require('../utils/staticwriter');
var TX = require('../primitives/tx');
/**
* Represents a mempool entry.
@ -192,7 +195,7 @@ MempoolEntry.prototype.isFree = function isFree(height) {
*/
MempoolEntry.prototype.getSize = function getSize() {
return tx.getSize() + 37;
return this.tx.getSize() + 37;
};
/**

View File

@ -499,7 +499,7 @@ Block.prototype.verifyBody = function verifyBody(ret) {
*/
Block.prototype.getCoinbaseHeight = function getCoinbaseHeight() {
var coinbase, height;
var coinbase;
if (this.version < 2)
return -1;