Skip to content

Commit cfaec62

Browse files
committed
Revert "to fix txpool startup race (#7165)"
This reverts commit 36cce22.
1 parent 04b5c0c commit cfaec62

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eth/backend.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,14 +610,16 @@ func New(stack *node.Node, config *ethconfig.Config, logger log.Logger) (*Ethere
610610
// 1) Hive tests requires us to do so and starting it from eth_sendRawTransaction is not viable as we have not enough data
611611
// to initialize it properly.
612612
// 2) we cannot propose for block 1 regardless.
613-
{
613+
go func() {
614+
time.Sleep(10 * time.Millisecond)
614615
baseFee := uint64(0)
615616
if currentBlock.BaseFee() != nil {
616617
baseFee = currentBlock.BaseFee().Uint64()
617618
}
618619
backend.notifications.Accumulator.StartChange(currentBlock.NumberU64(), currentBlock.Hash(), nil, false)
619620
backend.notifications.Accumulator.SendAndReset(ctx, backend.notifications.StateChangesConsumer, baseFee, currentBlock.GasLimit())
620-
}
621+
622+
}()
621623

622624
if !config.DeprecatedTxPool.Disable {
623625
backend.txPool2Fetch.ConnectCore()

0 commit comments

Comments
 (0)