Skip to content

Commit 0251cf7

Browse files
authored
txpool: Use CrossUnsafe for Interop Ingress Filter (#428)
1 parent 9462f05 commit 0251cf7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/txpool/ingress_filters.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@ func (f *interopFilter) FilterTx(ctx context.Context, tx *types.Transaction) boo
5353
ctx, cancel := context.WithTimeout(ctx, time.Second*2)
5454
defer cancel()
5555
// check with the supervisor if the transaction should be allowed given the executing messages
56-
return f.checkFn(ctx, ems, interoptypes.Unsafe) == nil
56+
// the message can be unsafe (discovered only via P2P unsafe blocks), but it must be cross-valid
57+
// so CrossUnsafe is used here
58+
return f.checkFn(ctx, ems, interoptypes.CrossUnsafe) == nil
5759
}

0 commit comments

Comments
 (0)