-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Implement additional callbacks as per ICS 26 #5507
Comments
Ok, it appears that there are some substantial remaining issues to be resolved here that will block the demo. It does not appear that packet receipt is hooked up or working in the current code. |
None of these points should be related to packet receipt. As far as I can tell from a quick read of the code, packet receipt is hooked up (see |
Packet receipts are only sent back when the token sending fails due to the invalid packet data or some receiving side logic, which we don't have in the current version of ICS20 spec/impl afaik |
Can |
Assuming the amount is correct, the only case that AddCoins fails is when the (oldCoins+amt) < 0, which I don't quite understand. |
what is a packet receipt and where is this implemented? |
can you point me to this item? which are the additional callbacks that need to be handled? |
Packet Receipt is the And the callbacks, according to the linked comment are:
|
It seems to me like we should probably panic in this case, but I think it's worth building out the acknowledgement success/failure logic anyways, just to see how it works. |
I can't find this comment anymore, does anyone remember what it was referencing? |
Why does |
How precisely do we want to deal with the requisite callbacks (channel opening, closing)? The ADR defines a I think it would be preferable to handle these callbacks in the same way as incoming packets and timeouts, instead of creating another binding & callback system, if possible. Are there any impediments there? Thoughts @mossid @fedekunze? |
Agree we should delete it |
👍
I also noticed there are a lot of concepts and functions that were not implemented. @mossid, care to comment regarding that? |
Initially, I think we can just implement the callbacks identically to how packet receipt, timeouts, etc. are currently handled within the ante handler. |
This sounds like a great call @cwgoes |
@AdityaSripal suggests a second router used by the IBC handler. Note that it must be the same as the capability ownership table. |
Agreed that we need a second router with dynamic routing support, I will work on this. I'll also update the ADR accordingly. |
Where are we with this issue? cc @cwgoes |
The current state should be fine to get the demo working (w.r.t. this issue) but 2/3/4 block IBC 1.0. |
Is there an issue/design for the second router? |
Are there issues open for the remaining work here that make what needs to be done a bit more clear? Looks like the spec update has been done and some of the stuff that wasn't done a month ago has moved forward a bit. |
This is blocked on #5542. |
Closed by #5888. |
Handle additional callbacks, ref https://github.com/cosmos/cosmos-sdk/pull/5401/files#diff-de4dba43d2cba47382cdb1c05d1f8c3cR3
The text was updated successfully, but these errors were encountered: