diff --git a/eth/api_backend.go b/eth/api_backend.go index 04fdf26847..3842c583d2 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -290,9 +290,12 @@ func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) // If the transaction pool is enabled, we send the transaction to the sequencer RPC asynchronously as this is // additional to the public mempool. go func() { + // create a new context with a timeout to prevent the original context from being cancelled + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + defer cancel() err := b.sendToSequencer(ctx, signedTx) if err != nil { - log.Warn("failed to forward tx to sequencer", "tx", signedTx.Hash(), "err", err) + log.Debug("failed to forward tx to sequencer asynchronously", "tx", signedTx.Hash(), "err", err) } }() } diff --git a/eth/backend.go b/eth/backend.go index c696d640d1..3921235012 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -308,7 +308,7 @@ func New(stack *node.Node, config *ethconfig.Config, l1Client l1.Client) (*Ether // Some of the extraData is used with Clique consensus (before EuclidV2). After EuclidV2 we use SystemContract consensus where this is overridden when creating a block. eth.miner.SetExtra(makeExtraData(config.Miner.ExtraData)) - eth.APIBackend = &EthAPIBackend{stack.Config().ExtRPCEnabled(), stack.Config().AllowUnprotectedTxs, config.GossipTxReceivingDisabled, eth, nil} + eth.APIBackend = &EthAPIBackend{stack.Config().ExtRPCEnabled(), stack.Config().AllowUnprotectedTxs, config.GossipTxBroadcastDisabled, eth, nil} if eth.APIBackend.allowUnprotectedTxs { log.Info("Unprotected transactions allowed") } diff --git a/params/version.go b/params/version.go index 1e5b0c8122..ccdbd49060 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 9 // Minor version component of the current release - VersionPatch = 1 // Patch version component of the current release + VersionPatch = 2 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string )