feat: add flags to disable tx broadcast & receive#266
feat: add flags to disable tx broadcast & receive#266
Conversation
CodSpeed Performance ReportMerging #266 will not alter performanceComparing Summary
|
greged93
left a comment
There was a problem hiding this comment.
Some small comments. I'm also wondering why the tx_gossip_disabled is not enough? Do we need more granularity in some cases?
Yeah, I think we will need this granularity. One of our side goal is to have a private transaction pool for sequencer. which means sequencer won't broadcast transactions it received, meanwhile we still need transaction receiving enabled. |
Got it, I thought we would only use the |
greged93
left a comment
There was a problem hiding this comment.
I think you're just missing a call to default for the network builder. Also need to fix the CI.
|
We can achieve the same result without introducing any additional configuration flags in the codebase. Objectives:
We can achieve these objectives by simply setting the configuration property reth/crates/transaction-pool/src/config.rs Lines 170 to 185 in 766dd27 I question whether this PR is needed or if we can just use the configuration defined above to achieve our desired result. |
I checked this out, yes it's obvious better to use Will close this PR after I tested |
|
Close this PR since we can use |
Reth counterpart of l2geth scroll-tech/go-ethereum#1194.
Related rollup-node PR: scroll-tech/rollup-node#181
Added two fields on
NetworkConfig.tx_gossip_broadcast_disabled: to disable transaction broadcasting to other peers.tx_gossip_receive_disabled: to disable transaction receiving broadcasted from other peers.