Skip to content

fix: Migrate dialog does not show in v0.114.2 - #3101

Merged
Keith-CY merged 5 commits into
developfrom
fix-374
Apr 19, 2024
Merged

fix: Migrate dialog does not show in v0.114.2#3101
Keith-CY merged 5 commits into
developfrom
fix-374

Conversation

@devchenyan

Copy link
Copy Markdown
Contributor

@devchenyan
devchenyan requested review from Keith-CY and yanguoyu April 3, 2024 03:31
@devchenyan

devchenyan commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

/package
Packaging for test is done in 8535546814. @devchenyan

@Danie0918

Copy link
Copy Markdown

@Keith-CY @homura Please have a review.

Comment thread packages/neuron-wallet/src/services/ckb-runner.ts Outdated
Comment thread _typos.toml
@silySuper

silySuper commented Apr 7, 2024

Copy link
Copy Markdown

/package
Packaging for test is done in 8585392191. @silySuper

@Keith-CY Keith-CY mentioned this pull request Apr 7, 2024
@silySuper

Copy link
Copy Markdown

I have start 0.113.0 full node on local,and open test package above,but can not see migrate tip.
image

What should I do to have migrate effect?

@Keith-CY

Keith-CY commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

I have start 0.113.0 full node on local,and open test package above,but can not see migrate tip. image

What should I do to have migrate effect?

Replacing the chain data(default location /Users/{User name}/Library/Application Support/Neuron/chains/testnet/data) with one synced by CKB@v0.113.0 and CKB@v0.110.2 should trigger the migration.

@silySuper

Copy link
Copy Markdown

This is my files in chains path,no testnet files.My testnet files is in node files
截屏2024-04-07 17 10 15
截屏2024-04-07 17 11 22

@Keith-CY

Keith-CY commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

This is my files in chains path,no testnet files.My testnet files is in node files 截屏2024-04-07 17 10 15 截屏2024-04-07 17 11 22

The path I mentioned above is the default one. It can be set in Settings => Data => CKB Node &Config, so you can replace the testnet/data in your custom node data directory to trigger the migration.

@silySuper

Copy link
Copy Markdown
截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

@Keith-CY

Keith-CY commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

You can replace the data in your own node directory to trigger the migration if you're using the self-hosted node.

The migration is triggered when your active CKB node starts and it finds its data is too old. So in fact the replacement should be taken in the directory of your active/selected node.

@Danie0918

Copy link
Copy Markdown

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

This should be a bug that needs to be fixed.

@silySuper

Copy link
Copy Markdown

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has th,is path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

This should be a bug that needs to be fixed.

OK, @devchenyan

@yanguoyu

yanguoyu commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

This should be a bug that needs to be fixed.

I don't think so. If the selected node is not an internal node, it can not be set the data path. At that the users start the ckb node, so we will not show the migrate dialog and show the data path. And we can not get the ckb data path, all of the ckb node and data are controlled by the users.

@silySuper

Copy link
Copy Markdown

What is the conclusion?Need to add path setting in testnet node? @Danie0918

@yanguoyu

Copy link
Copy Markdown
Contributor

What is the conclusion?Need to add path setting in testnet node? @Danie0918

Migrate dialog only shows when selecting the Internal node, so you should test by selecting the Internal Node.

@silySuper

silySuper commented Apr 12, 2024

Copy link
Copy Markdown

/package
Packaging for test is done in 8655624884. @silySuper

@silySuper

Copy link
Copy Markdown

I have replace data to /Volumes/My\ Passport/ckb节点/ckb_v0.108.1_x86_64-apple-darwin-portable/testnet/data ,but can not see migrate dialog.

2024-04-12.15.21.02.mov

@silySuper

Copy link
Copy Markdown

@devchenyan please check this issue~

@devchenyan

devchenyan commented Apr 17, 2024

Copy link
Copy Markdown
Contributor Author

@devchenyan please check this issue~

@silySuper

  1. Completely uninstall neuron
  2. Use a low version of neuron to synchronise data
  3. Use the test package to synchronise data, trigger the migration.

@silySuper

silySuper commented Apr 18, 2024

Copy link
Copy Markdown

@devchenyan please check this issue~

@silySuper

  1. Completely uninstall neuron
  2. Use a low version of neuron to synchronise data
  3. Use the test package to synchronise data, trigger the migration.
    actually I think neuron v114.2 is the test package because of the title,does old testnet data create by old version(v108) can not trigger the migration, before which lower version can use? @devchenyan


enum NeedMigrateMsg {
Wants = 'CKB wants to migrate the data into new format',
Recommends = 'CKB recommends migrating your data into a new format',

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.

Suggested change
Recommends = 'CKB recommends migrating your data into a new format',
// https://github.com/nervosnetwork/ckb/blob/31bcecddc8ad5b7d0a30399ef55a5ce0a359bb7e/shared/src/shared_builder.rs#L79
Recommends = 'CKB recommends migrating your data into a new format',

@silySuper

Copy link
Copy Markdown

@devchenyan please check this issue~

@silySuper

  1. Completely uninstall neuron
  2. Use a low version of neuron to synchronise data
  3. Use the test package to synchronise data, trigger the migration.
    actually I think neuron v114.2 is the test package because of the title,does old testnet data create by old version(v108) can not trigger the migration, before which lower version can use? @devchenyan
截屏2024-04-18 11 46 30

When last version is not null and !v108 both true,can trigger the migration ?

@silySuper

Copy link
Copy Markdown

Find the reason,path should choose to testnet file,not testnet/data file.

@silySuper

Copy link
Copy Markdown

Maybe internal node data path choose can add tips to tell users which directory can be used is better @Danie0918

@Danie0918

Copy link
Copy Markdown

Maybe internal node data path choose can add tips to tell users which directory can be used is better @Danie0918

This can only be suggested to the user and may still cause this problem. Any other solutions? @devchenyan @yanguoyu

@yanguoyu

Copy link
Copy Markdown
Contributor

Maybe internal node data path choose can add tips to tell users which directory can be used is better @Danie0918

This can only be suggested to the user and may still cause this problem. Any other solutions? @devchenyan @yanguoyu

I believe the user only needs to know the root directory of the ckb data, it's unnecessary to understand the meaning of each directory of the ckb data root directory.

@Keith-CY
Keith-CY merged commit ac57230 into develop Apr 19, 2024
@Keith-CY
Keith-CY deleted the fix-374 branch April 19, 2024 10:32
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.

6 participants