mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
* core/txpool: no need to run rotate if no local txs
* Revert "core/txpool: no need to run rotate if no local txs"
This reverts commit 17fab17388.
* use Debug if todo is empty
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
This commit is contained in:
parent
5b0e2e4bf0
commit
1ac34cbac3
1 changed files with 6 additions and 1 deletions
|
|
@ -162,7 +162,12 @@ func (journal *journal) rotate(all map[common.Address]types.Transactions) error
|
|||
return err
|
||||
}
|
||||
journal.writer = sink
|
||||
log.Info("Regenerated local transaction journal", "transactions", journaled, "accounts", len(all))
|
||||
|
||||
logger := log.Info
|
||||
if len(all) == 0 {
|
||||
logger = log.Debug
|
||||
}
|
||||
logger("Regenerated local transaction journal", "transactions", journaled, "accounts", len(all))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue