Skip to content

Commit 44823c9

Browse files
committed
Small refactor
1 parent f490791 commit 44823c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sequencer/src/mempool/private/PrivateMempool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export class PrivateMempool extends SequencerModule implements Mempool {
137137

138138
while (
139139
queue.length > 0 &&
140-
(limit !== undefined ? sortedTransactions.length < limit : true)
141-
) {
140+
sortedTransactions.length < (limit ?? Number.MAX_VALUE)
141+
) {
142142
const [tx] = queue.splice(0, 1);
143143
const txStateService = new CachedStateService(baseService);
144144
stateServiceProvider.setCurrentStateService(txStateService);

0 commit comments

Comments
 (0)