From b8b425263b70aee4854feb387e8e9cc6df6d8cad Mon Sep 17 00:00:00 2001 From: Nikhil Suri Date: Fri, 5 May 2023 14:55:09 -0700 Subject: [PATCH] node/watcher: filter recv_packet events (#2883) --- node/pkg/watchers/cosmwasm/watcher.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/node/pkg/watchers/cosmwasm/watcher.go b/node/pkg/watchers/cosmwasm/watcher.go index d468ed72e..bad878e02 100644 --- a/node/pkg/watchers/cosmwasm/watcher.go +++ b/node/pkg/watchers/cosmwasm/watcher.go @@ -342,6 +342,11 @@ func EventsToMessagePublications(contract string, txHash string, events []gjson. continue } eventType := gjson.Get(event.String(), "type") + if eventType.String() == "recv_packet" { + logger.Warn("processing ibc-related events is disabled", zap.String("network", networkName), zap.String("tx_hash", txHash), zap.String("event", event.String())) + return []*common.MessagePublication{} + } + if eventType.String() != "wasm" { continue }