Skip to content

Testnet Missed upgrade steps#102

Merged
TxCorpi0x merged 7 commits into
release-v6from
mehdi/testnet-v6-upgrade-patch
Mar 16, 2026
Merged

Testnet Missed upgrade steps#102
TxCorpi0x merged 7 commits into
release-v6from
mehdi/testnet-v6-upgrade-patch

Conversation

@TxCorpi0x

@TxCorpi0x TxCorpi0x commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Description

This pull request introduces a patch upgrade for the v6 release, focusing on updating the PSE module parameters to testnet defaults and clarifying which migrations have already been performed in previous upgrades. The upgrade handler is renamed and unnecessary migration steps are commented out to prevent redundancy.

Upgrade handler changes:

  • Renamed the upgrade handler from "v6" to "v6-params-patch" to reflect its purpose as a patch.
  • Updated the StoreUpgrades and migration steps to comment out actions that were already completed in the previous v6.0.0 upgrade, preventing duplicate execution and clarifying upgrade history. [1] [2]

PSE module Changes:

  • Added the TestnetV6Patch function in pse_init.go to set PSE module parameters to testnet defaults, and integrated this step into the upgrade handler. [1] [2]

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@TxCorpi0x TxCorpi0x marked this pull request as ready for review March 10, 2026 07:05
@TxCorpi0x TxCorpi0x requested a review from a team as a code owner March 10, 2026 07:05
@TxCorpi0x TxCorpi0x requested review from masihyeganeh, metalarm10, miladz68 and ysv and removed request for a team March 10, 2026 07:05

@ysv ysv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ysv reviewed 8 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on masihyeganeh, metalarm10, miladz68, and TxCorpi0x).


app/app.go line 136 at r1 (raw file):

	appupgradev6 "github.com/tokenize-x/tx-chain/v6/app/upgrade/v6"
	appupgradev6patch1 "github.com/tokenize-x/tx-chain/v6/app/upgrade/v6patch1"
	appupgradev6patch1testnet "github.com/tokenize-x/tx-chain/v6/app/upgrade/v6patch1testnet"

did I understand correctly that you propose to make everything in a single v6patch1testnet upgrade including denom migrate & testnet fixes ?


app/app.go line 136 at r1 (raw file):

	appupgradev6 "github.com/tokenize-x/tx-chain/v6/app/upgrade/v6"
	appupgradev6patch1 "github.com/tokenize-x/tx-chain/v6/app/upgrade/v6patch1"
	appupgradev6patch1testnet "github.com/tokenize-x/tx-chain/v6/app/upgrade/v6patch1testnet"

Also, I wish we were able to build binaries with more custom version, smth like v6.1.0-testnet.
Could you pls check if there is a way to add it simply to our CI

@TxCorpi0x TxCorpi0x left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@TxCorpi0x made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on masihyeganeh, metalarm10, miladz68, and ysv).


app/app.go line 136 at r1 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

did I understand correctly that you propose to make everything in a single v6patch1testnet upgrade including denom migrate & testnet fixes ?

Yes, both in the same Upgrade specific for testnet


app/app.go line 136 at r1 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

Also, I wish we were able to build binaries with more custom version, smth like v6.1.0-testnet.
Could you pls check if there is a way to add it simply to our CI

we can change the CI in a way that everything with version v6.1.0-{X} to be created as release version, only the rc suffix to be created as release candidate (e.g.v6.1.0-rc)

@TxCorpi0x TxCorpi0x left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@TxCorpi0x made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on masihyeganeh, metalarm10, miladz68, and ysv).


app/app.go line 136 at r1 (raw file):

Previously, TxCorpi0x wrote…

we can change the CI in a way that everything with version v6.1.0-{X} to be created as release version, only the rc suffix to be created as release candidate (e.g.v6.1.0-rc)

Or in other way, any suffix (e.g. alpha, beta, rc, testnet, etc.) to be prerelease, and only clean version (e.g. v1.0.0) to be release.
Currenlty only rc suffix is created as prerelease here.

@ysv ysv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ysv made 1 comment and resolved 2 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on masihyeganeh, metalarm10, and miladz68).


app/app.go line 136 at r1 (raw file):

Previously, TxCorpi0x wrote…

Or in other way, any suffix (e.g. alpha, beta, rc, testnet, etc.) to be prerelease, and only clean version (e.g. v1.0.0) to be release.
Currenlty only rc suffix is created as prerelease here.

I see
resolving it here and lets add this as a separate task

@TxCorpi0x TxCorpi0x merged commit d6598f3 into release-v6 Mar 16, 2026
8 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.

2 participants