eth: remove lastDirect

This commit is contained in:
Felix Lange 2025-08-26 10:49:44 +02:00
parent 256bf9d8b0
commit 59b224af5f

View file

@ -120,11 +120,10 @@ type handler struct {
snapSync atomic.Bool // Flag whether snap sync is enabled (gets disabled if we already have blocks) snapSync atomic.Bool // Flag whether snap sync is enabled (gets disabled if we already have blocks)
synced atomic.Bool // Flag whether we're considered synchronised (enables transaction processing) synced atomic.Bool // Flag whether we're considered synchronised (enables transaction processing)
database ethdb.Database database ethdb.Database
txpool txPool txpool txPool
chain *core.BlockChain chain *core.BlockChain
maxPeers int maxPeers int
lastDirect atomic.Int64 // Last number of peers we sent transactions to, used to stabilize the randomness
downloader *downloader.Downloader downloader *downloader.Downloader
txFetcher *fetcher.TxFetcher txFetcher *fetcher.TxFetcher