internal/ethapi: route SendRawTransaction through private path when enabled#2202
internal/ethapi: route SendRawTransaction through private path when enabled#2202
Conversation
…nabled On a private-tx-enabled node, SendRawTransaction and SendRawTransactionSync now behave like SendRawTransactionPrivate so transactions are never gossiped on the public mempool, regardless of which endpoint the client uses.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2202 +/- ##
==========================================
+ Coverage 52.21% 52.25% +0.03%
==========================================
Files 884 884
Lines 155479 155586 +107
==========================================
+ Hits 81190 81304 +114
+ Misses 69060 69050 -10
- Partials 5229 5232 +3
... and 34 files with indirect coverage changes
🚀 New features to boost your workflow:
|
|
|
Re: Bug: Compare with SendRawTransactionForPreconf which correctly guards on the Suggested fix: hash, err := SubmitTransaction(ctx, api.b, tx)
if err != nil {
return common.Hash{}, err
}
// Submit tx directly to BP. Preconf processing mostly happens in background so don't
// float the error back to the user.
if err := api.b.SubmitTxForPreconf(tx); err != nil { |
|
Canceling in favor of #2203 |


Description
On a private-tx-enabled node, SendRawTransaction and SendRawTransactionSync now behave like SendRawTransactionPrivate so transactions are never gossiped on the public mempool, regardless of which endpoint the client uses.
Changes
Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it
Nodes audience
In case this PR includes changes that must be applied only to a subset of nodes, please specify how you handled it (e.g. by adding a flag with a default value...)
Checklist
Cross repository changes
Testing
Manual tests
Please complete this section with the steps you performed if you ran manual tests for this functionality, otherwise delete it
Additional comments
Please post additional comments in this section if you have them, otherwise delete it