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

Fix AcknowledgePacket and AcknowledgementExecuted bug + update testing pkg #7170

Merged
merged 5 commits into from
Aug 26, 2020

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Aug 26, 2020

Description

Upstreams changes made on this pr. chain-id is no included in connection ids and channel ids for testing so chainA and chainB won't have identical channel IDs. Fixes the bug in the below issue as well.

I tried adding random strings as well, but it gets a bit complex because sometimes you want to refer to a channel that hasn't been created yet and trying to refer to this channel with randomness causes non-trivial overhead.

closes: #7156
ref: #6509


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.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

go.mod Show resolved Hide resolved
// PacketExecuted receives a packet through the channel keeper on the source chain and updates the
// counterparty client for the source chain.
func (coord *Coordinator) PacketExecuted(
// RecvPacket receives a channel packet on the counterparty chain and updates
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reordered some code, the diffs don't reflect it well

@codecov
Copy link

codecov bot commented Aug 26, 2020

Codecov Report

Merging #7170 into master will decrease coverage by 1.09%.
The diff coverage is 45.59%.

@@            Coverage Diff             @@
##           master    #7170      +/-   ##
==========================================
- Coverage   55.60%   54.50%   -1.10%     
==========================================
  Files         457      566     +109     
  Lines       27440    38752   +11312     
==========================================
+ Hits        15257    21122    +5865     
- Misses      11083    15900    +4817     
- Partials     1100     1730     +630     

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

ACK, thanks 🎉 !

@colin-axner colin-axner added the A:automerge Automatically merge PR once all prerequisites pass. label Aug 26, 2020
@mergify mergify bot merged commit e09c8d9 into master Aug 26, 2020
@mergify mergify bot deleted the colin/7156-channel-bug branch August 26, 2020 12:11
@alpe
Copy link
Contributor

alpe commented Aug 26, 2020

Thanks for adding the modifications to ibc testing package upstream as well. Very much appreciated 💐

@AdityaSripal AdityaSripal mentioned this pull request Aug 27, 2020
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. T:Bug T: Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IBC ordered channels cause "sequence acknowledgement not found"
4 participants