Skip to content

Commit

Permalink
Do not throw on invalid sendTx for now
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 24, 2024
1 parent da8056a commit 1c71fd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yarn-project/aztec-node/src/aztec-node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c71fd4

Please sign in to comment.