We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f490791 commit 44823c9Copy full SHA for 44823c9
packages/sequencer/src/mempool/private/PrivateMempool.ts
@@ -137,8 +137,8 @@ export class PrivateMempool extends SequencerModule implements Mempool {
137
138
while (
139
queue.length > 0 &&
140
- (limit !== undefined ? sortedTransactions.length < limit : true)
141
- ) {
+ sortedTransactions.length < (limit ?? Number.MAX_VALUE)
+ ) {
142
const [tx] = queue.splice(0, 1);
143
const txStateService = new CachedStateService(baseService);
144
stateServiceProvider.setCurrentStateService(txStateService);
0 commit comments