-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBC delay middleware should delay all packets (also timeout and acks from the rollapp) #393
Comments
@omritoptix implementation wise, this requires different solution than the if the middleware return We should return err for non-finialized packets, which will cause the relayer to retry until eventually it will be handled |
Problem I see with this is that assuming X days grace period, the relayer will have a potentially X days size of unacked and timeout messages which I’m not sure the consequences of besides having relayer log full of errors which stuck in a loop trying to ack X days worth of acks constantly. I believe a more elegant option would be:
that’s why even though we eventually run the timeout, it's necessary to wait for grace-period/fraud to happen so at least assuming there is watch tower, the user won't be able to escape with the funds before. |
yeah it's the right solution, but requires forking the IBC |
don't think its required. you can skip running the logic of the onAck and OnTimeout and run it after finalization (Similar to |
Currently the IBC delay middleware only delays transfer packet messages. The middleware should also delay acks and timeout and basically every packet type arriving from the rollapp.
The text was updated successfully, but these errors were encountered: