Skip to content

Commit

Permalink
txpool: nil pointer fix (#13033)
Browse files Browse the repository at this point in the history
Added check for bill, closes: #12858
  • Loading branch information
dvovk authored Dec 8, 2024
1 parent 3b7dfbc commit 15deff3
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 @@ -1988,6 +1988,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 15deff3

Please sign in to comment.