Adds delay in deployer to ensure accounts are unlocked on time.

This commit is contained in:
benbierens 2023-06-30 09:54:13 +02:00
parent 6e03301b7a
commit 4dab688b6f
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ namespace CodexNetDeployer
Log("Geth started. Codex contracts deployed.");
Log("Warning: It can take up to 45 minutes for the Geth node to finish unlocking all if its 1000 preconfigured accounts.");
// It takes a second for the geth node to unlock a single account. Let's assume 3.
// We can't start the codex nodes until their accounts are definitely unlocked. So
// We wait:
Thread.Sleep(TimeSpan.FromSeconds(3.0 * config.NumberOfCodexNodes!.Value));
Log("Starting Codex nodes...");
// Each node must have its own IP, so it needs it own pod. Start them 1 at a time.