Skip to content

Commit 086374a

Browse files
committed
Update PrivateMempool.add to accept validated txs
1 parent 0e4df18 commit 086374a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export class PrivateMempool extends SequencerModule implements Mempool {
2828
const success = await this.transactionStorage.pushUserTransaction(tx);
2929
if (success) {
3030
this.events.emit("mempool-transaction-added", tx);
31+
return true;
3132
}
33+
throw new Error("Failed to add transaction to mempool");
3234
}
3335
throw new Error(`Valdiation of tx failed: ${error ?? "unknown error"}`);
3436
}

0 commit comments

Comments
 (0)