@@ -17,16 +17,6 @@ import (
1717)
1818
1919const (
20- // waitBlockTime is the amount of time to wait for BuildBlock to be
21- // called by the engine before deciding whether or not to gossip the
22- // transaction that triggered the PendingTxs message to the engine.
23- //
24- // This is done to reduce contention in the network when there is no
25- // preferred producer. If we did not wait here, we may gossip a new
26- // transaction to a peer while building a block that will conflict with
27- // whatever the peer makes.
28- waitBlockTime = 100 * time .Millisecond
29-
3020 // Minimum amount of time to wait after building a block before attempting to build a block
3121 // a second time without changing the contents of the mempool.
3222 minBlockBuildingRetryDelay = 500 * time .Millisecond
@@ -168,9 +158,6 @@ func (b *blockBuilder) awaitSubmittedTxs() {
168158 b .signalTxsReady ()
169159
170160 if b .gossiper != nil && len (ethTxsEvent .Txs ) > 0 {
171- // Give time for this node to build a block before attempting to
172- // gossip
173- time .Sleep (waitBlockTime )
174161 // [GossipEthTxs] will block unless [gossiper.ethTxsToGossipChan] (an
175162 // unbuffered channel) is listened on
176163 if err := b .gossiper .GossipEthTxs (ethTxsEvent .Txs ); err != nil {
@@ -186,9 +173,6 @@ func (b *blockBuilder) awaitSubmittedTxs() {
186173
187174 newTxs := b .mempool .GetNewTxs ()
188175 if b .gossiper != nil && len (newTxs ) > 0 {
189- // Give time for this node to build a block before attempting to
190- // gossip
191- time .Sleep (waitBlockTime )
192176 if err := b .gossiper .GossipAtomicTxs (newTxs ); err != nil {
193177 log .Warn (
194178 "failed to gossip new atomic transactions" ,
0 commit comments