Skip to content

Commit 44e8381

Browse files
committed
merge master into config-refresh
1 parent 5bb2f09 commit 44e8381

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/bitcore-node/test/integration/models/block.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Block Model', function() {
1212
// eslint-disable-next-line @typescript-eslint/no-this-alias
1313
const suite = this;
1414
this.timeout(30000);
15-
15+
1616
async function insertBlocks() {
1717
await BitcoinBlockStorage.collection.insertOne({
1818
chain: 'BTC',

packages/bitcore-node/test/integration/models/coin.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Coin Model', function() {
1313
// eslint-disable-next-line @typescript-eslint/no-this-alias
1414
const suite = this;
1515
this.timeout(30000);
16-
16+
1717
function createNewTxid() {
1818
const seed = (Math.random() * 10000).toString();
1919
return crypto
@@ -22,12 +22,12 @@ describe('Coin Model', function() {
2222
.digest()
2323
.toString('hex');
2424
}
25-
25+
2626
async function addTx(tx: IBtcTransaction, outputs: ICoin[]) {
2727
await TransactionStorage.collection.insertOne(tx as IBtcTransaction);
2828
await CoinStorage.collection.insertMany(outputs as ICoin[]);
2929
}
30-
30+
3131
async function makeMempoolTxChain(chain: string, network: string, startingTxid: string, chainLength = 1) {
3232
let txid = startingTxid;
3333
let nextTxid = createNewTxid();
@@ -190,7 +190,7 @@ describe('Coin Model', function() {
190190
} as ICoin;
191191
});
192192
await addTx(mempoolTx, mempoolOutputs);
193-
193+
194194
// update existing outputs to be spent by mempool tx
195195
await CoinStorage.collection.updateMany(
196196
{ chain, network, mintTxid: tx1.hash },

packages/bitcore-node/test/integration/models/transaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ describe('Transaction Model', function() {
216216

217217
const wallet = new ObjectId();
218218
const address = '0x3Ec3dA6E14BE9518A9a6e92DdCC6ACfF2CEFf4ef';
219-
219+
220220
beforeEach(async () => {
221221
await WalletAddressStorage.collection.insertOne({
222222
chain,

packages/bitcore-node/test/integration/routes/block.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ describe('Block Routes', function() {
155155
{ fee: 11000, size: 1056 },
156156
]
157157
},
158-
{ chain: 'BCH', height: 100,
158+
{ chain: 'BCH', height: 100,
159159
transactions: [
160160
{ fee: 0, size: 133, coinbase: true },
161161
{ fee: 2000, size: 1056 },
162162
{ fee: 2000, size: 1056 },
163163
{ fee: 2500, size: 1056 },
164164
{ fee: 3000, size: 1056 },
165165
{ fee: 3500, size: 1056 }
166-
]
166+
]
167167
},
168168
{ chain: 'BCH', height: 101 },
169169
{ chain: 'BCH', height: 102 }
@@ -334,7 +334,7 @@ describe('Block Routes', function() {
334334
done();
335335
});
336336
});
337-
337+
338338
it('should get coins by block hash and limit coins to 3', done => {
339339
request.get(`/api/BTC/regtest/block/${block100Hash}/coins/3/1`).expect(200, (err, res) => {
340340
if (err) return done(err);

packages/bitcore-node/test/unit/models/transaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { BitcoreLib } from '@bitpay-labs/crypto-wallet-core';
1616

1717
describe('Transaction Model', function() {
1818
const { Transaction } = BitcoreLib;
19-
19+
2020
before(unitBeforeHelper);
2121
after(unitAfterHelper);
2222

packages/bitcore-node/test/unit/services/p2p.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ describe('P2P Service', function() {
1313
const sandbox = sinon.createSandbox();
1414
class MockP2PWorker extends BaseP2PWorker<any> {
1515
started = false;
16-
16+
1717
constructor(params) {
1818
super(params);
1919
this.started = true;
2020
}
2121
}
22-
22+
2323
before(unitBeforeHelper);
2424
after(unitAfterHelper);
2525

@@ -120,7 +120,7 @@ describe('P2P Service', function() {
120120
super(params);
121121
}
122122
}
123-
123+
124124
const p2p = new MockEVMP2pWorker({ chain: 'ETH', network: 'mainnet', chainConfig: {} });
125125
const converted = await p2p.convertBlock(block as any);
126126
expect(converted.convertedTxs.every(tx => {

0 commit comments

Comments
 (0)