mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
rotate journal upon DropAllTxs
This commit is contained in:
parent
692834ec7a
commit
0209e9515e
1 changed files with 3 additions and 1 deletions
|
|
@ -247,8 +247,10 @@ func (p *LegacyPool) DropAllTxs() {
|
|||
p.pending = make(map[common.Address]*list)
|
||||
p.queue = make(map[common.Address]*list)
|
||||
if !p.config.NoLocals && p.config.Journal != "" {
|
||||
// TODO: do we need to truncate the existing journal here?
|
||||
p.journal = newTxJournal(p.config.Journal)
|
||||
if err := p.journal.rotate(p.local()); err != nil {
|
||||
log.Warn("Failed to rotate transaction journal", "err", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue