LayerTwo-Labs / drivechain_launcher

A user-friendly frontend for 8 billion people.
MIT License
12 stars 11 forks source link

When starting Qt GUI sidechains (like testchain) the launcher does not know about syncing mainchain block cache #37

Open CryptAxe opened 5 months ago

CryptAxe commented 5 months ago

When the Qt based sidechains like testchain start, they contact mainchain and synchronize a cache of mainchain block information. Since the launcher doesn't know about this it looks like it has frozen after hitting run on testchain until the mainchain block cache is synchronized.

We could check for this error message:

{ "result": <null>, "error": { "code": -28, "message": "Updating mainchain block cache..." }, "id": 1 }

or just wait for a minute, as syncing is pretty fast.

CryptAxe commented 5 months ago

Update: I tried to reproduce this again today, and it didn't freeze up and everything worked correctly. So this issue only happens sometimes but I haven't figured out why yet.

CryptAxe commented 5 months ago

We also may want to wait to start the sidechains anyway: https://github.com/LayerTwo-Labs/drivechain_launcher/issues/45