Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
only iterate up to txsFromOrigin.length
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Aug 12, 2022
1 parent 34a943a commit 4ad9e9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/chains/ethereum/ethereum/src/transaction-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,11 @@ export default class TransactionPool extends Emittery<{ drain: undefined }> {
const { inProgress, pending } = executables;

pending.forEach(txsFromOrigin => {
txsFromOrigin.array.forEach(tx => {
const { array } = txsFromOrigin;
for (let i = 0; i < txsFromOrigin.length; i++) {
const tx = array[i];
tx.locked = false;
});
}
});

inProgress.forEach(transaction => {
Expand Down

0 comments on commit 4ad9e9a

Please sign in to comment.