Skip to content

Commit

Permalink
txpool: nil pointer fix (#13033) (#13065)
Browse files Browse the repository at this point in the history
Added check for bill, closes: #12858
  • Loading branch information
dvovk authored Dec 11, 2024
1 parent a4ca1fa commit c288fd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erigon-lib/txpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,9 @@ func (p *TxPool) flush(ctx context.Context, db kv.RwDB) (written uint64, err err

func (p *TxPool) flushLocked(tx kv.RwTx) (err error) {
for i, mt := range p.deletedTxs {
if mt == nil {
continue
}
id := mt.Tx.SenderID
idHash := mt.Tx.IDHash[:]
if !p.all.hasTxs(id) {
Expand Down

0 comments on commit c288fd4

Please sign in to comment.