From fbe540100623dd3065cdfe375125e1b53bba5b67 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 28 Aug 2025 12:42:40 +0200 Subject: [PATCH] eth: move assignment of key --- eth/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/handler.go b/eth/handler.go index b8691254fe..31410e3286 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -155,6 +155,7 @@ func newHandler(config *handlerConfig) (*handler, error) { txpool: config.TxPool, chain: config.Chain, peers: newPeerSet(), + txBroadcastKey: newBroadcastChoiceKey(), requiredBlocks: config.RequiredBlocks, quitSync: make(chan struct{}), handlerDoneCh: make(chan struct{}), @@ -205,7 +206,6 @@ func newHandler(config *handlerConfig) (*handler, error) { addTxs := func(txs []*types.Transaction) []error { return h.txpool.Add(txs, false) } - h.txBroadcastKey = newBroadcastChoiceKey() h.txFetcher = fetcher.NewTxFetcher(h.txpool.Has, addTxs, fetchTx, h.removePeer) return h, nil }