From 1c71fd4384ea32d838770218a4e0ac7a30d8a6ff Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Tue, 24 Dec 2024 17:37:34 -0300 Subject: [PATCH] Do not throw on invalid sendTx for now --- yarn-project/aztec-node/src/aztec-node/server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yarn-project/aztec-node/src/aztec-node/server.ts b/yarn-project/aztec-node/src/aztec-node/server.ts index 38497f5a2dd..82519a3752c 100644 --- a/yarn-project/aztec-node/src/aztec-node/server.ts +++ b/yarn-project/aztec-node/src/aztec-node/server.ts @@ -400,7 +400,9 @@ export class AztecNodeService implements AztecNode, Traceable { const reason = valid.reason.join(', '); this.metrics.receivedTx(timer.ms(), false); this.log.warn(`Invalid tx ${txHash}: ${reason}`, { txHash }); - throw new Error(`Invalid tx: ${reason}`); + // TODO(#10967): Throw when receiving an invalid tx instead of just returning + // throw new Error(`Invalid tx: ${reason}`); + return; } await this.p2pClient!.sendTx(tx);