Skip to content

Commit

Permalink
Use CrossUnsafe for Interop Ingress Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
axelKingsley committed Nov 7, 2024
1 parent 1e60ba8 commit 2ea7c84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/txpool/ingress_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ func (f *interopFilter) FilterTx(ctx context.Context, tx *types.Transaction) boo
ctx, cancel := context.WithTimeout(ctx, time.Second*2)
defer cancel()
// check with the supervisor if the transaction should be allowed given the executing messages
return f.checkFn(ctx, ems, interoptypes.Unsafe) == nil
// the message can be unsafe (discovered only via P2P unsafe blocks), but it must be cross-valid
// so CrossUnsafe is used here
return f.checkFn(ctx, ems, interoptypes.CrossUnsafe) == nil
}

0 comments on commit 2ea7c84

Please sign in to comment.