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

Unfork CosmosSDK, CometBFT, ibc-go #539

Merged
merged 52 commits into from
Dec 16, 2024

Conversation

kien6034
Copy link
Contributor

@kien6034 kien6034 commented Dec 5, 2024

Summary of changes

This PR unforks the following modules:

CosmosSDK

  • Move iavl DefaultIAVLCacheSize setting from fork to Terrad Issue 14
  • Move custom BlockHeightMiddlware to Terrad Issue 13
  • Move the voting power limitation logic Issue 19
  • Remove unused custom pruning forks Issue 22
  • Remove unused config cache size forks Issue 18

IBC

  • Move the logic checking ibc memo and receiver length Issue 29

Comet BFT

  • Integrate mempool to terrad
  • Directly order oracle tx first instead of in the CometBFT's side

Unit testing

Cosmos-sdk

ibc-go

CometBFT

E2E testings

CometBFT

Report of required housekeeping

  • Github issue OR spec proposal link
  • Wrote tests
  • Updated API documentation (client/lcd/swagger-ui/swagger.yaml)
  • Added a relevant changelog entry: clog add [section] [stanza] [message]

(FOR ADMIN) Before merging

  • Added appropriate labels to PR
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)
  • Confirm added tests are consistent with the intended behavior of changes
  • Ensure all tests pass

hoank101 and others added 30 commits November 2, 2024 08:40
…rder (#26)

* bet

* bet

* Fix test oracle

* update ict

* revert unnecessary change

* update test

* Refactor test

---------

Co-authored-by: tnv1 <[email protected]>
* feat: unfork cachesize setting

* feat: handleBlockHeightMiddleware

* feat: add hook for validator power limit

* perf: change hooks ordering

* revert toolchain

* bump to sdk 47.14

* comments for option
* bump

* add ibc ante spamming

* bump ibc-go to v7.4.1

* make default max memo length 1024

---------

Co-authored-by: Tuan Tran <[email protected]>
@kien6034 kien6034 changed the title Develop Unfork Cosmos-sdk, CometBFT, IBCgo Dec 5, 2024
@StrathCole StrathCole requested a review from Copilot December 5, 2024 21:44

Choose a reason for hiding this comment

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

Copilot reviewed 20 out of 35 changed files in this pull request and generated no suggestions.

Files not reviewed (15)
  • Makefile: Language not supported
  • go.mod: Language not supported
  • scripts/run-node.sh: Language not supported
  • scripts/spam-tx.sh: Language not supported
  • scripts/upgrade-test.sh: Language not supported
  • custom/auth/ante/fee.go: Evaluated as low risk
  • custom/auth/ante/ante.go: Evaluated as low risk
  • custom/auth/ante/fee_tax.go: Evaluated as low risk
  • app/keepers/keepers.go: Evaluated as low risk
  • cmd/terrad/config.go: Evaluated as low risk
  • app/mempool/helper_test.go: Evaluated as low risk
  • app/app.go: Evaluated as low risk
  • app/upgrades/v11/constants.go: Evaluated as low risk
  • cmd/terrad/config_test.go: Evaluated as low risk
  • app/mempool/mempool_fifo.go: Evaluated as low risk
Comments skipped due to low confidence (2)

custom/auth/ante/ibc_spamming_prevention.go:17

  • [nitpick] The error message 'receiver too long' could be more descriptive. Consider changing it to 'Receiver address exceeds maximum allowed length'.
ErrReceiverTooLong = sdkerrors.Register(ModuleName, 11, "receiver too long")

custom/auth/ante/ibc_spamming_prevention.go:18

  • [nitpick] The error message 'memo too long' could be more descriptive. Consider changing it to 'Memo exceeds maximum allowed length'.
ErrMemoTooLong = sdkerrors.Register(ModuleName, 12, "memo too long")
app/app.go Outdated Show resolved Hide resolved
custom/auth/ante/fee_tax.go Outdated Show resolved Hide resolved
custom/staking/hook.go Outdated Show resolved Hide resolved
scripts/upgrade-test.sh Outdated Show resolved Hide resolved
scripts/upgrade-test.sh Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
app/mempool/mempool_fifo.go Show resolved Hide resolved
@kien6034 kien6034 changed the title Unfork Cosmos-sdk, CometBFT, IBCgo Unfork CosmosSDK, CometBFT, ibc-go Dec 6, 2024
Copy link
Collaborator

@StrathCole StrathCole left a comment

Choose a reason for hiding this comment

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

Good work, guys.

@mergify mergify bot mentioned this pull request Dec 16, 2024
8 tasks
@kien6034 kien6034 changed the base branch from main to orbitlabs/unforking December 16, 2024 09:30
@StrathCole StrathCole merged commit 70aad84 into classic-terra:orbitlabs/unforking Dec 16, 2024
38 of 42 checks passed
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.

5 participants