core/txpool/blobpool: fix bug on converTx append

This commit is contained in:
healthykim 2026-05-06 15:24:47 +02:00
parent c03867d66a
commit 3c8b108156

View file

@ -580,7 +580,7 @@ func (p *BlobPool) Init(gasTip uint64, head *types.Header, reserver txpool.Reser
} else if legacy {
fails = append(fails, id)
tx := new(types.Transaction)
if err := rlp.DecodeBytes(blob, tx); err != nil {
if err := rlp.DecodeBytes(blob, tx); err == nil {
convertTxs = append(convertTxs, tx)
}
}