From 27bf2e3592204228cfeb922bbb0d41ed6d7130d4 Mon Sep 17 00:00:00 2001 From: Matt <98158711+BedrockSquirrel@users.noreply.github.com> Date: Fri, 7 Jun 2024 12:08:20 +0100 Subject: [PATCH] Host: ignore empty L1 head status from enclave (#1955) --- go/host/enclave/state.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/go/host/enclave/state.go b/go/host/enclave/state.go index 3af6066278..135da41089 100644 --- a/go/host/enclave/state.go +++ b/go/host/enclave/state.go @@ -120,7 +120,10 @@ func (s *StateTracker) OnEnclaveStatus(es common.Status) { s.m.Lock() defer s.m.Unlock() s.enclaveStatusCode = es.StatusCode - s.enclaveL1Head = es.L1Head + // only update L1 head if non-empty head reported + if es.L1Head != gethutil.EmptyHash { + s.enclaveL1Head = es.L1Head + } s.enclaveL2Head = es.L2Head s.setStatus(s.calculateStatus())