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

Wait to show "run" buttons of sidechains until mainchain IBD is completed? #45

Open
CryptAxe opened this issue Mar 25, 2024 · 2 comments

Comments

@CryptAxe
Copy link
Contributor

The sidechains cannot connect to the mainchain until the mainchain has completed initial block download and is completely synced up to the main chain tip. If someone starts the sidechains when the mainchain is out of sync they will not be able to do anything and may need to restart / manually re-enable networking once mainchain has synced up.

Instead we could wait to enable the sidechains until the mainchain is synced up. What do you guys think?

@8bitprodigy
Copy link
Contributor

Sounds good to me.

@8bitprodigy
Copy link
Contributor

Is there some sort of callback emitted by the mainchain when this occurs?

@seriouscatsoserious
Copy link
Collaborator

This is a great idea. After spending more time in the Launcher this makes way more sense. Probably as simple as putting whatever logic responsible for greying/ungreying the buttons inside a conditional that checks if the IBD is done. I'll put it on the list of things to do after the wallets.

@psztorc
Copy link
Contributor

psztorc commented Apr 29, 2024

Eventually, I think the launcher should show IBD percentages for each chain

Then it will be something the user understands -- downloaded 100%, synced 100%

They will know to wait, until the numbers are 100%

The launcher can display "0% synced" for the sidechain, if the mainchain is below a certain height

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

No branches or pull requests

4 participants