Skip to content

Commit 35735f1

Browse files
authored
Merge pull request #48 from astriaorg/noot/fix
don't allow deposit or blob txs in sequenced data
2 parents 744a32e + a8edeac commit 35735f1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

grpc/execution/server.go

+11
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,17 @@ func (s *ExecutionServiceServerV1Alpha2) ExecuteBlock(ctx context.Context, req *
240240
log.Error("failed to unmarshal sequenced data into transaction, ignoring", "tx hash", sha256.Sum256(tx.GetSequencedData()), "err", err)
241241
continue
242242
}
243+
244+
if ethTx.Type() == types.DepositTxType {
245+
log.Debug("ignoring deposit tx in sequenced data", "tx hash", sha256.Sum256(tx.GetSequencedData()))
246+
continue
247+
}
248+
249+
if ethTx.Type() == types.BlobTxType {
250+
log.Debug("ignoring blob tx in sequenced data", "tx hash", sha256.Sum256(tx.GetSequencedData()))
251+
continue
252+
}
253+
243254
txsToProcess = append(txsToProcess, ethTx)
244255
}
245256
}

0 commit comments

Comments
 (0)