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

Problem: ibc incentivization is not integrated #647

Merged
merged 22 commits into from
Aug 19, 2022

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Aug 16, 2022

Closes: #642
Solution:

  • integration ibc fee middleware
  • pass exiting integration test
  • add ibc incentivized integration test

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

app/app.go Fixed Show fixed Hide fixed
@lgtm-com
Copy link

lgtm-com bot commented Aug 16, 2022

This pull request introduces 1 alert when merging f229497 into 21d79ac - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

@codecov
Copy link

codecov bot commented Aug 17, 2022

Codecov Report

Merging #647 (1744b1e) into main (29c4fec) will decrease coverage by 0.16%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
- Coverage   32.91%   32.75%   -0.17%     
==========================================
  Files          34       34              
  Lines        1604     1612       +8     
==========================================
  Hits          528      528              
- Misses       1023     1031       +8     
  Partials       53       53              
Impacted Files Coverage Δ
app/upgrades.go 0.00% <0.00%> (ø)

app/app.go Outdated Show resolved Hide resolved
@yihuang yihuang marked this pull request as ready for review August 18, 2022 07:34
@yihuang yihuang requested a review from a team as a code owner August 18, 2022 07:34
@yihuang yihuang requested review from thomas-nguy and adu-crypto and removed request for a team August 18, 2022 07:34
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link

@devashishdxt devashishdxt left a comment

Choose a reason for hiding this comment

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

Integration test seems fine. Just a small comment on app wiring.

app/app.go Show resolved Hide resolved
app/app.go Outdated Show resolved Hide resolved
Copy link

@devashishdxt devashishdxt left a comment

Choose a reason for hiding this comment

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

Fee middleware is supposed to be backwards compatible. It'll be better if we also write some tests with incentivized=False. I ran into some problems with non-fee enabled channels on chain-main. The issue was faulty app wiring.

@yihuang
Copy link
Collaborator Author

yihuang commented Aug 19, 2022

Fee middleware is supposed to be backwards compatible. It'll be better if we also write some tests with incentivized=False. I ran into some problems with non-fee enabled channels on chain-main. The issue was faulty app wiring.

I just parameterized the ibc fixture, to run test cases on both cases.

@yihuang yihuang enabled auto-merge (squash) August 19, 2022 09:13
@yihuang
Copy link
Collaborator Author

yihuang commented Aug 19, 2022

/runsim

@yihuang yihuang disabled auto-merge August 19, 2022 10:53
@yihuang yihuang merged commit 498a095 into crypto-org-chain:main Aug 19, 2022
@yihuang yihuang deleted the ibc-incentivization branch August 19, 2022 13:01
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.

Problem: ibc incentivization is not integrated
3 participants