Adds crash-watcher to contract deployment

This commit is contained in:
Ben 2025-06-17 14:03:38 +02:00
parent 41d6ec64f6
commit 536d297365
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B

View File

@ -35,12 +35,15 @@ namespace CodexContractsPlugin
var container = containers.Containers[0];
Log("Container started.");
var watcher = workflow.CreateCrashWatcher(container);
watcher.Start();
try
{
var result = DeployContract(container, workflow, gethNode);
workflow.Stop(containers, waitTillStopped: false);
watcher.Stop();
Log("Container stopped.");
return result;
}