Skip to content
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

Call delete_packet_commitment instead of delete_packet_acknowledgement after receiving acknowledgement packets #66

Closed
5 tasks
livelybug opened this issue Nov 17, 2021 · 1 comment · Fixed by informalsystems/hermes#1609
Assignees
Labels
A: bug Admin: something isn't working

Comments

@livelybug
Copy link

Crate

modules

Summary of Bug

After reading the comments in ibc-go:
// if packet commitment still exists on the original sending chain, then packet ack has not been received
// since processing the ack will delete the packet commitment

I think the corresponding logic in ibc-rs may need to adjust accordingly:
After receiving acknowledgement packets from the relayer via an unordered channel, the chain should call delete_packet_commitment, instead of delete_packet_acknowledgement

Otherwise, the query_unreceived_acknowledgement is possible to return the ack packets already received.

Version

ac68782

Steps to Reproduce

  • Start 2 substrate chains chain_a and chain_b;
  • Start the Hermes relayer monitoring the 2 chains above;
  • chain_a emits a SendPacket event;
  • The event is relayed by the relayer to chain_b;
  • chain_b emits a WriteAck event;
  • The relayer detects the WriteAck event;
  • The relayer sends ack packets to chain_a repeatedly every time it detects a new block event;

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@romac romac added the A: bug Admin: something isn't working label Nov 17, 2021
@romac romac changed the title delete_packet_commitment instead of delete_packet_acknowledgement after receiving acknowledgement packets Call delete_packet_commitment instead of delete_packet_acknowledgement after receiving acknowledgement packets Nov 17, 2021
@hu55a1n1
Copy link
Contributor

Thanks for opening this issue @livelybug! Nice catch! 👌

@hu55a1n1 hu55a1n1 transferred this issue from informalsystems/hermes Sep 29, 2022
shuoer86 pushed a commit to shuoer86/ibc-rs that referenced this issue Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: bug Admin: something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants