mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "core/txpool: no need to run rotate if no local txs"
This reverts commit 17fab17388.
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
17fab17388
commit
73c413efab
1 changed files with 0 additions and 5 deletions
|
|
@ -131,11 +131,6 @@ func (journal *journal) insert(tx *types.Transaction) error {
|
||||||
// rotate regenerates the transaction journal based on the current contents of
|
// rotate regenerates the transaction journal based on the current contents of
|
||||||
// the transaction pool.
|
// the transaction pool.
|
||||||
func (journal *journal) rotate(all map[common.Address]types.Transactions) error {
|
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)
|
// Close the current journal (if any is open)
|
||||||
if journal.writer != nil {
|
if journal.writer != nil {
|
||||||
if err := journal.writer.Close(); err != nil {
|
if err := journal.writer.Close(); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue