lint: fix some linting errors.
This commit is contained in:
parent
15adc17dea
commit
853ef18ad9
@ -786,7 +786,7 @@ Config.prototype.parseConfig = function parseConfig(text) {
|
||||
|
||||
let key = line.substring(0, index).trim();
|
||||
|
||||
key = key.replace(/\-/g, '')
|
||||
key = key.replace(/\-/g, '');
|
||||
|
||||
if (!isLowerKey(key))
|
||||
throw new Error(`Invalid option on line ${num}: ${key}.`);
|
||||
|
||||
@ -1,10 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
const heapdump = require('heapdump');
|
||||
const fs = require('../lib/utils/fs');
|
||||
const MempoolEntry = require('../lib/mempool/mempoolentry');
|
||||
const Coins = require('../lib/coins/coins');
|
||||
const TX = require('../lib/primitives/tx');
|
||||
const common = require('../test/util/common');
|
||||
|
||||
const SNAPSHOT = `${__dirname}/../dump.heapsnapshot`;
|
||||
|
||||
@ -450,7 +450,8 @@ describe('Chain', function() {
|
||||
job.addTX(spend.toTX(), spend.view);
|
||||
job.refresh();
|
||||
|
||||
assert.strictEqual(await mineBlock(job), 'mandatory-script-verify-flag-failed');
|
||||
assert.strictEqual(await mineBlock(job),
|
||||
'mandatory-script-verify-flag-failed');
|
||||
});
|
||||
|
||||
it('should mine a block', async () => {
|
||||
@ -570,7 +571,8 @@ describe('Chain', function() {
|
||||
block.refresh(true);
|
||||
block.merkleRoot = block.createMerkleRoot('hex');
|
||||
|
||||
assert.strictEqual(await addBlock(block, flags), 'bad-witness-merkle-match');
|
||||
assert.strictEqual(await addBlock(block, flags),
|
||||
'bad-witness-merkle-match');
|
||||
});
|
||||
|
||||
it('should fail to connect unexpected witness', async () => {
|
||||
|
||||
@ -52,7 +52,7 @@ function nextBlock() {
|
||||
return {
|
||||
hash: hash.toString('hex'),
|
||||
height: height,
|
||||
prevBlock: prevHead.toString('hex'),
|
||||
prevBlock: prevHash.toString('hex'),
|
||||
time: time,
|
||||
merkleRoot: encoding.NULL_HASH,
|
||||
nonce: 0,
|
||||
@ -407,7 +407,7 @@ describe('Wallet', function() {
|
||||
const balance = await alice.getBalance();
|
||||
assert.strictEqual(balance.unconfirmed, 11000);
|
||||
|
||||
let txs = await alice.getHistory();
|
||||
const txs = await alice.getHistory();
|
||||
assert(txs.some((wtx) => {
|
||||
return wtx.hash === f1.hash('hex');
|
||||
}));
|
||||
@ -729,8 +729,6 @@ describe('Wallet', function() {
|
||||
const tx = new MTX();
|
||||
tx.addOutput(carol.getAddress(), 5460);
|
||||
|
||||
const cost = tx.getOutputValue();
|
||||
|
||||
const coins1 = await alice.getCoins();
|
||||
const coins2 = await bob.getCoins();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user