Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions op-node/rollup/derive/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ type DataSourceConfig struct {
// 2. the transaction type is any of Legacy, ACL, DynamicFee, Blob, or Deposit (for L3s).
// 3. the transaction has a To() address that matches the batch inbox address
func isValidBatchTx(tx *types.Transaction, receipt *types.Receipt, _ types.Signer, batchInboxAddr, batcherAddr common.Address, logger log.Logger) bool {
if receipt.Status != types.ReceiptStatusSuccessful {
logger.Warn("tx in inbox with invalid status", "hash", tx.Hash(), "status", receipt.Status)
return false
}

// For now, we want to disallow the SetCodeTx type or any future types.
if tx.Type() > types.BlobTxType && tx.Type() != types.DepositTxType {
return false
Expand All @@ -111,6 +106,11 @@ func isValidBatchTx(tx *types.Transaction, receipt *types.Receipt, _ types.Signe
return false
}

if receipt.Status != types.ReceiptStatusSuccessful {
logger.Warn("tx in inbox with invalid status", "hash", tx.Hash(), "status", receipt.Status)
return false
}

// NOTE: contrary to a standard OP batcher, we can safely skip any verification related
// to the sender of the transaction. Indeed the Batch Inbox contract takes care of
// ensuring the sender of the batch information is a legitimate batcher.
Expand Down
Loading