Skip to content

Commit

Permalink
core/txpool/tracking: fix nil deref
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Oct 11, 2024
1 parent 426f05f commit 165e892
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/txpool/tracking/tx_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ func (tracker *TxTracker) TrackAll(txs []*types.Transaction) {
tracker.byAddr[addr] = legacypool.NewSortedMap()
}
tracker.byAddr[addr].Put(tx)
_ = tracker.journal.insert(tx)
if tracker.journal != nil {
_ = tracker.journal.insert(tx)
}
}
}

Expand Down

0 comments on commit 165e892

Please sign in to comment.