core, eth/downloader: validate blobtx.To at serialization time (#27393)

This commit is contained in:
Péter Szilágyi
2023-05-31 13:08:15 +03:00
committed by GitHub
parent 495692c9db
commit 008086f935
5 changed files with 8 additions and 13 deletions
-3
View File
@@ -806,9 +806,6 @@ func (q *queue) DeliverBodies(id string, txLists [][]*types.Transaction, txListH
// Validate the data blobs individually too
if tx.Type() == types.BlobTxType {
if tx.To() == nil {
return errInvalidBody // TODO(karalabe): Why not make the field non-nil-able
}
if len(tx.BlobHashes()) == 0 {
return errInvalidBody
}