cosmos / relayer

An IBC relayer for ibc-go
Apache License 2.0
390 stars 1.71k forks source link

feat: add configurable limits for receiver and ICS-20 memo fields #1377

Closed jtieri closed 10 months ago

jtieri commented 10 months ago

This PR adds two new additional fields to the relayer's global config, ICS20MemoLimit & MaxReceiverSize. These new values can be used to fine tune the relayer to ignore packets whose receiver field or ics-20 memo field exceed the configured limit. By default ICS20MemoLimit is configured to zero which indicates that no limit is set, MaxReceiverSize is configured to 128 which indicates that receiver fields greater than 128 bytes should be ignored.