From 73c413efab9ef8f2bd2c59d1929d637158c99e49 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 26 Feb 2024 21:44:31 +0800 Subject: [PATCH] Revert "core/txpool: no need to run rotate if no local txs" This reverts commit 17fab173883168c586d57ca9c05dfcbd9e7831b4. Signed-off-by: jsvisa --- core/txpool/legacypool/journal.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/txpool/legacypool/journal.go b/core/txpool/legacypool/journal.go index 2a38cbb185..f04ab8fc14 100644 --- a/core/txpool/legacypool/journal.go +++ b/core/txpool/legacypool/journal.go @@ -131,11 +131,6 @@ func (journal *journal) insert(tx *types.Transaction) error { // rotate regenerates the transaction journal based on the current contents of // the transaction pool. func (journal *journal) rotate(all map[common.Address]types.Transactions) error { - // No need to rotate if there are no transactions to write - if len(all) == 0 { - return nil - } - // Close the current journal (if any is open) if journal.writer != nil { if err := journal.writer.Close(); err != nil {