mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Let recheck work while journal path is empty and fix TestResubmit
This commit is contained in:
parent
5c5a9a8d14
commit
ee20ddbb82
1 changed files with 4 additions and 2 deletions
|
|
@ -157,8 +157,10 @@ func (tracker *TxTracker) recheck(journalCheck bool) []*types.Transaction {
|
||||||
// Rejournal the tracker while holding the lock. No new transactions will
|
// Rejournal the tracker while holding the lock. No new transactions will
|
||||||
// be added to the old journal during this period, preventing any potential
|
// be added to the old journal during this period, preventing any potential
|
||||||
// transaction loss.
|
// transaction loss.
|
||||||
if err := tracker.journal.rotate(rejournal); err != nil {
|
if tracker.journal != nil {
|
||||||
log.Warn("Transaction journal rotation failed", "err", err)
|
if err := tracker.journal.rotate(rejournal); err != nil {
|
||||||
|
log.Warn("Transaction journal rotation failed", "err", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
localGauge.Update(int64(len(tracker.all)))
|
localGauge.Update(int64(len(tracker.all)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue