-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add flags to disable tx broadcast & receive #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: scroll
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #266 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're just missing a call to default for the network builder. Also need to fix the CI.
@@ -42,7 +42,10 @@ impl ScrollNode { | |||
.pool(ScrollPoolBuilder::default()) | |||
.executor(ScrollExecutorBuilder::default()) | |||
.payload(BasicPayloadServiceBuilder::new(ScrollPayloadBuilderBuilder::default())) | |||
.network(ScrollNetworkBuilder) | |||
.network(ScrollNetworkBuilder { | |||
disable_txpool_broadcast: self.disable_txpool_broadcast, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you be calling 'default()' here?
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.