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

Process write acknowledgements on packet_callback #2439

Merged
merged 9 commits into from
Jul 26, 2022
Merged

Process write acknowledgements on packet_callback #2439

merged 9 commits into from
Jul 26, 2022

Conversation

DaviRain-Su
Copy link
Contributor

@DaviRain-Su DaviRain-Su commented Jul 20, 2022

Closes: https://github.com/informalsystems/ibc-rs/issues/2424
Closes: https://github.com/informalsystems/ibc-rs/issues/2428

Description

Add Write_Acknowledgement Process on Packet_Callback.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@adizere adizere removed the request for review from ancazamfir July 21, 2022 07:42
Copy link
Member

@hu55a1n1 hu55a1n1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great work @DaviRain-Su! 🙌 I added some comments, eg. handling failed acks.

modules/src/core/ics04_channel/handler.rs Outdated Show resolved Hide resolved
modules/src/core/ics04_channel/handler.rs Outdated Show resolved Hide resolved
@romac romac changed the title add write_acknowledgement process on packet_callback Process write acknowledgements on packet_callback Jul 21, 2022
@romac
Copy link
Member

romac commented Jul 21, 2022

This also needs a changelog entry.

Copy link
Member

@hu55a1n1 hu55a1n1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@hu55a1n1 hu55a1n1 merged commit 6d7cd03 into informalsystems:master Jul 26, 2022
@DaviRain-Su DaviRain-Su deleted the feature/add_wtite_ack_handle branch August 22, 2022 13:09
hu55a1n1 added a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…2439)

* add write_acknowledgement process on packet_callback

* fix bug

* extract write_ack logic to process_write_ack function

* add issue #2424 and 2438 to changelog

* Derive From/Into for opaque Ack

* Use generic Ack as writeAck input

* Simplify Ack trait

* Process write ack using conversion to generic Ack

* Allow `packet_callback()` to emit IbcEvents

Co-authored-by: hu55a1n1 <sufialhussaini@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants