Repository navigation
Conversation
|
PR author is not in the allowed authors list. |
kriss39
force-pushed
the
fix/channel-v2-recv-double-write
branch
from
September 13, 2026 20:51
ff4a9cf to
fd91003
Compare
6 of 7 tasks
kriss39
force-pushed
the
fix/channel-v2-recv-double-write
branch
from
October 21, 2026 10:10
4b454d0 to
a47ed08
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9078 +/- ##
=======================================
Coverage 66.83% 66.83%
=======================================
Files 329 329
Lines 17497 17498 +1
=======================================
+ Hits 11694 11695 +1
Misses 5069 5069
Partials 734 734
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
kriss39
force-pushed
the
fix/channel-v2-recv-double-write
branch
from
November 29, 2026 08:22
6bfd08a to
133b659
Compare
…acks in RecvPacket Since lfdt-ibc#8545 the application callbacks in MsgRecvPacket run in the same cached context that was already written after TAO verification. The second writeFn call re-emits every event recorded by recvPacket, so relayers and indexers see the core recv_packet (and message) events twice on every successful receive. When an application returns a failure the same TAO events are additionally converted and emitted as ibccallbackerror-* events. Create a fresh cached context for the application callbacks, matching the v1 handler, and add a regression test asserting the event counts. Signed-off-by: Kriss <93033289+kriss39@users.noreply.github.com>
kriss39
force-pushed
the
fix/channel-v2-recv-double-write
branch
from
November 29, 2026 08:25
133b659 to
38f1f4b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Since #8545 the application callbacks in
ChannelKeeperV2.RecvPacketran in the cached context that had already been written after TAO verification. The secondwriteFn()re-emitted every event recorded byrecvPacket, sorecv_packet(andmessage) events were emitted twice on every successful receive, and on application failure the TAO events were additionally converted intoibccallbackerror-*events.This PR creates a fresh cached context for the application callbacks (matching the v1 handler) and adds
TestMsgRecvPacketEventsNotDuplicated, which asserts thatrecv_packet/write_acknowledgementare emitted exactly once and that noibccallbackerror-recv_packetevent is emitted, for both a successful and a failing application callback. Onmainthe test fails withrecv_packet: 2/ibccallbackerror-recv_packet: 1.closes: #9073
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/) if anything is changed. (n/a — no documented behaviour changes)godoccomments if relevant.Files changedin the GitHub PR explorer.