go-ethereum/core/txpool/blobpool
radik878 8d1b1c20d0
core/txpool/blobpool: auto-start next conversion batch after completion (#33301)
This change fixes a stall in the legacy blob sidecar conversion pipeline
where tasks that arrived during an active batch could remain unprocessed
indefinitely after that batch completed, unless a new external event
arrived. 

The root cause was that the loop did not restart processing in
the case <-done: branch even when txTasks had accumulated work, relying
instead on a future event to retrigger the scheduler. This behavior is
inconsistent with the billy task pipeline, which immediately chains to
the next task via runNextBillyTask() without requiring an external trigger. 

The fix adds a symmetric restart path in `case <-done`: that checks 
`len(txTasks) > 0`, clones the accumulated tasks, clears the queue, and 
launches a new run with a fresh done and interrupt. 

This preserves batching semantics, prevents indefinite blocking of callers 
of convert(), and remains safe during shutdown since the quit path 
still interrupts and awaits the active batch. No public interfaces or logging 
were changed.
2025-11-27 19:43:37 +08:00
..
blobpool.go core/txpool/blobpool: convert and add one-by-one (#32718) 2025-09-25 10:27:23 +02:00
blobpool_test.go core/txpool/blobpool: fix benchmarkPoolPending (#33161) 2025-11-13 14:32:01 +08:00
config.go core/txpool/blobpool: reduce default database cap for rollout (#29090) 2024-02-26 14:27:56 +02:00
conversion.go core/txpool/blobpool: auto-start next conversion batch after completion (#33301) 2025-11-27 19:43:37 +08:00
conversion_test.go core/txpool/blobpool: auto-start next conversion batch after completion (#33301) 2025-11-27 19:43:37 +08:00
evictheap.go all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
evictheap_test.go core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
interface.go core/txpool/blobpool: 4844 blob transaction pool (#26940) 2023-07-27 13:45:35 +03:00
limbo.go core/txpool/blobpool: migrate billy to new slot size (#31966) 2025-09-15 21:34:57 +08:00
lookup.go core/txpool/blobpool: fork boundary conversion 3 (#32716) 2025-09-24 20:03:17 +02:00
metrics.go core/txpool/blobpool: post-crash cleanup and addition/removal metrics (#28914) 2024-02-02 18:26:35 +02:00
priority.go core/txpool/blobpool: calculate log1.125 faster (#29300) 2024-03-20 14:51:05 +01:00
priority_test.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
slotter.go core/txpool/blobpool: migrate billy to new slot size (#31966) 2025-09-15 21:34:57 +08:00
slotter_test.go core/txpool/blobpool: migrate billy to new slot size (#31966) 2025-09-15 21:34:57 +08:00