Skip to content

Commit 1c71fd4

Browse files
committed
Do not throw on invalid sendTx for now
1 parent da8056a commit 1c71fd4

File tree

1 file changed

+3
-1
lines changed
  • yarn-project/aztec-node/src/aztec-node

1 file changed

+3
-1
lines changed

yarn-project/aztec-node/src/aztec-node/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ export class AztecNodeService implements AztecNode, Traceable {
400400
const reason = valid.reason.join(', ');
401401
this.metrics.receivedTx(timer.ms(), false);
402402
this.log.warn(`Invalid tx ${txHash}: ${reason}`, { txHash });
403-
throw new Error(`Invalid tx: ${reason}`);
403+
// TODO(#10967): Throw when receiving an invalid tx instead of just returning
404+
// throw new Error(`Invalid tx: ${reason}`);
405+
return;
404406
}
405407

406408
await this.p2pClient!.sendTx(tx);

0 commit comments

Comments
 (0)