From 2ea7c843613a272cde79a119591242d9c2451735 Mon Sep 17 00:00:00 2001 From: axelKingsley Date: Thu, 7 Nov 2024 12:33:19 -0600 Subject: [PATCH] Use CrossUnsafe for Interop Ingress Filter --- core/txpool/ingress_filters.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/txpool/ingress_filters.go b/core/txpool/ingress_filters.go index 317585f7a..d911b6975 100644 --- a/core/txpool/ingress_filters.go +++ b/core/txpool/ingress_filters.go @@ -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 }