refactor: lint.
This commit is contained in:
parent
a4201e6bd5
commit
e9d87dcd98
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user