refactor: lint.
This commit is contained in:
parent
a4201e6bd5
commit
e9d87dcd98
@ -9,6 +9,9 @@
|
|||||||
var policy = require('../protocol/policy');
|
var policy = require('../protocol/policy');
|
||||||
var util = require('../utils/util');
|
var util = require('../utils/util');
|
||||||
var Script = require('../script/script');
|
var Script = require('../script/script');
|
||||||
|
var BufferReader = require('../utils/reader');
|
||||||
|
var StaticWriter = require('../utils/staticwriter');
|
||||||
|
var TX = require('../primitives/tx');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a mempool entry.
|
* Represents a mempool entry.
|
||||||
@ -192,7 +195,7 @@ MempoolEntry.prototype.isFree = function isFree(height) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
MempoolEntry.prototype.getSize = function getSize() {
|
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() {
|
Block.prototype.getCoinbaseHeight = function getCoinbaseHeight() {
|
||||||
var coinbase, height;
|
var coinbase;
|
||||||
|
|
||||||
if (this.version < 2)
|
if (this.version < 2)
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user