Skip to content

Problem: ibc incentivization is not integrated#647

Merged
yihuang merged 22 commits into
crypto-org-chain:mainfrom
yihuang:ibc-incentivization
Aug 19, 2022
Merged

Problem: ibc incentivization is not integrated#647
yihuang merged 22 commits into
crypto-org-chain:mainfrom
yihuang:ibc-incentivization

Conversation

@yihuang

@yihuang yihuang commented Aug 16, 2022

Copy link
Copy Markdown
Contributor

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! :)

mmsqe and others added 2 commits August 12, 2022 12:25
Comment thread app/app.go Fixed
@lgtm-com

lgtm-com Bot commented Aug 16, 2022

Copy link
Copy Markdown

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

codecov Bot commented Aug 17, 2022

Copy link
Copy Markdown

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%> (ø)

Comment thread app/app.go Outdated
@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 adu-crypto and thomas-nguy and removed request for a team August 18, 2022 07:34
Comment thread CHANGELOG.md Outdated
@yihuang
yihuang requested review from devashishdxt and mmsqe August 19, 2022 04:15

@devashishdxt devashishdxt left a comment

Copy link
Copy Markdown

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.

Comment thread app/app.go
Comment thread app/app.go Outdated

@devashishdxt devashishdxt left a comment

Copy link
Copy Markdown

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

yihuang commented Aug 19, 2022

Copy link
Copy Markdown
Contributor Author

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

yihuang commented Aug 19, 2022

Copy link
Copy Markdown
Contributor Author

/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

4 participants