Skip to content

Commit

Permalink
rm extraneous conole.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kajoseph committed Oct 10, 2024
1 parent 7e0c866 commit aad859e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,23 +184,20 @@ describe('Pruning Service', function() {

it('should not go into an infinite loop if there is a circular replacedByTxid reference', async function() {
await insertBadCoins();
console.log('point1');
await TransactionStorage.collection.insertOne({
...replacementTx,
_id: new ObjectId(),
txid: 'replacementTx2',
blockHeight: SpentHeightIndicators.pending,
replacedByTxid: replacementTx.txid
});
console.log('point2');
await TransactionStorage.collection.updateOne({
txid: replacementTx.txid
}, {
$set: {
replacedByTxid: 'replacementTx2'
}
});
console.log('point3');
// at this point, invalidTx => replacementTx => replacementTx2 => replacementTx

const { chain, network } = invalidCoin;
Expand Down

0 comments on commit aad859e

Please sign in to comment.