Question: Re-set the height of ChannelEvents::WriteAcknowledgement
#1995
Replies: 3 comments
-
Hello, it turns out that the reason why the height of When events are created, their As an example, if we have un-relayed events at height 5 and 9, and we query at height 10 for un-relayed packets in the previous 5 blocks, then we'll find the events at height 5 and 9 that need to be relayed. Once we retrieve those two events, their Proving an event involves (i) querying for proofs, which the relayer does relative to the height at which it performed the query, and (ii) building a client update message to enable verification of proofs on the destination chain. Both of these steps are done relative to the query height (10 in our above example), so ultimately, the height at which events were created isn't really relevant anymore at this stage of the event lifecycle. Hopefully that makes sense! 🙂 |
Beta Was this translation helpful? Give feedback.
-
Thank you, @seanchen1991 , for the detailed write-up.
I think the logic of height in "event" verification is different in Substrate. To verify the "event" of a Substrate chain, the height at which events were created is used instead of the querying height. But so far we don't encounter height discrepancy in Substrate "event" verification. To dive deeper and reply if any finding. BTW, the "event" is quoted because based on beefy protocol, on-chain storage is verified instead of event. |
Beta Was this translation helpful? Give feedback.
-
I have to correct myself: Both the height at which events were created or the height greater than the block height at which events were created can be used. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a question about setting the height of event
ChannelEvents::WriteAcknowledgement
.After getting the packets that have been acknowledged on the destination chain but still have commitments on source chain, the corresponding events are retrieved here.
The events are of type
ChannelEvents::WriteAcknowledgement
, which already contain propertyHeight
.I am confused why the height is set again here? Is it possible that the height is missing under some scenarios?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions