From 536d29736588dfd6fa44ea02ad4e7fffc6e4ea8c Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 17 Jun 2025 14:03:38 +0200 Subject: [PATCH] Adds crash-watcher to contract deployment --- ProjectPlugins/CodexContractsPlugin/CodexContractsStarter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ProjectPlugins/CodexContractsPlugin/CodexContractsStarter.cs b/ProjectPlugins/CodexContractsPlugin/CodexContractsStarter.cs index c7e900be..b9ee6389 100644 --- a/ProjectPlugins/CodexContractsPlugin/CodexContractsStarter.cs +++ b/ProjectPlugins/CodexContractsPlugin/CodexContractsStarter.cs @@ -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; }