node/watcher: filter recv_packet events (#2883)

This commit is contained in:
Nikhil Suri 2023-05-05 14:55:09 -07:00 committed by GitHub
parent 2734600234
commit b8b425263b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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
}