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

WIP: upgrade cosmos to 0.24.2 and tm to 0.24.0 #134

Closed
wants to merge 4 commits into from

Conversation

rickyyangz
Copy link
Contributor

Pending on cosmos' upgrade to tm 0.24.0

Since tm 0.24.0 has some important features/bugfixes, we have to use this latest version. However, the latest cosmos is still using the tm 0.23.2-rc0. There are some breaking changes between the two versions.
We can track this issue. cosmos/cosmos-sdk#2219

Description

#118

Rationale

We need some features and bugfixes that cosmos and tendermint did.
Here are some main changes need to be highlighted:
Tendermint

  • [abci] Added address of the original proposer of the block to Header
  • [types] ProposerAddress - address of the block's original proposer
  • [state] KV store index supports searching by tx.height
  • [consensus] Implement BFT time
    Timestamp in block must be monotonic and equal the median of timestamps in block's LastCommit

Besides these, some other changes also have big influence.
Cosmos

  • [baseapp] Msgs are no longer run on CheckTx, removed ctx.IsCheckTx() (we don't need this)
  • [client] : Refactored CoreContext to TxContext and QueryContext
    Removed all tx related fields and logic (building & signing) to separate structure TxContext in x/auth/client/context

Example

Changes

Notable changes:

  • make CheckTx still run msgs, and add back ctx.IsCheckTx()
  • fix all CoreContext issues
  • copied sdk.Context, AccountMapper, bank.Keeper and other related files.

Preflight checks

I fixed some cosmos code on my local machine to make it run on tm 0.24.0, so the following check list is based on my fixes.

  • build passed (make build)
  • tests passed (make test)
  • manual transaction test passed (cli invoke)

Will test it again after cosmos' upgrade.

Already reviewed by

...

rickyyangz and others added 3 commits September 10, 2018 15:23
- add back runMsg in checkTx
- add back ctx.IsCheckTx
- separate CLIContext and TxContext
- copied sdk.Context, AccountMapper, bank.Keeper and other related files.
@darren-liu
Copy link
Contributor

would be overriden by PR#215

@darren-liu darren-liu closed this Oct 30, 2018
@unclezoro unclezoro deleted the feature/upgrade24 branch May 10, 2022 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants