Skip to content

Commit

Permalink
Merge pull request #48 from astriaorg/noot/fix
Browse files Browse the repository at this point in the history
don't allow deposit or blob txs in sequenced data
  • Loading branch information
noot authored Apr 5, 2024
2 parents 744a32e + a8edeac commit 35735f1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions grpc/execution/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,17 @@ func (s *ExecutionServiceServerV1Alpha2) ExecuteBlock(ctx context.Context, req *
log.Error("failed to unmarshal sequenced data into transaction, ignoring", "tx hash", sha256.Sum256(tx.GetSequencedData()), "err", err)
continue
}

if ethTx.Type() == types.DepositTxType {
log.Debug("ignoring deposit tx in sequenced data", "tx hash", sha256.Sum256(tx.GetSequencedData()))
continue
}

if ethTx.Type() == types.BlobTxType {
log.Debug("ignoring blob tx in sequenced data", "tx hash", sha256.Sum256(tx.GetSequencedData()))
continue
}

txsToProcess = append(txsToProcess, ethTx)
}
}
Expand Down

0 comments on commit 35735f1

Please sign in to comment.