From 8be04878df724d70e0956cc2e6e266b4357bf356 Mon Sep 17 00:00:00 2001 From: Neylix Date: Wed, 8 Jan 2025 11:11:59 +0100 Subject: [PATCH] Fix SummaryCache deserialization --- lib/archethic/beacon_chain/subset/summary_cache.ex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/archethic/beacon_chain/subset/summary_cache.ex b/lib/archethic/beacon_chain/subset/summary_cache.ex index 2eabd7a74..b2b97e3b2 100644 --- a/lib/archethic/beacon_chain/subset/summary_cache.ex +++ b/lib/archethic/beacon_chain/subset/summary_cache.ex @@ -138,9 +138,11 @@ defmodule Archethic.BeaconChain.Subset.SummaryCache do {node_public_key, rest} <- Utils.deserialize_public_key(rest) do deserialize(rest, [{slot, node_public_key} | acc]) else - _ -> - # This happens when the content is not a complete entry - {acc, rest} + # This happens when the content is not a complete entry + _ -> {acc, rest} end + rescue + # This happens when the content is not a complete entry + _ -> {acc, rest} end end