Skip to content

Commit

Permalink
temp tx filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Jan 16, 2024
1 parent 9f00288 commit 0e187d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions process/transactionProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,10 @@ func (tp *TransactionProcessor) groupTxsByShard(txs []*data.Transaction) map[uin
}

func (tp *TransactionProcessor) checkTransactionFields(tx *data.Transaction) error {
if string(tx.Data) == "MigrateDataTrie" {
return ErrSendingRequest
}

_, err := tp.pubKeyConverter.Decode(tx.Sender)
if err != nil {
return &errors.ErrInvalidTxFields{
Expand Down

0 comments on commit 0e187d3

Please sign in to comment.