public static bool InitActiveGraphs() { var graphStorages = RedisStorage.GetGraphStorages(); logger.Info("Starting back the context of {0} graph(s) from last execution", graphStorages.Count); graphStorages.ForEach(x => { try { var decompressedRaw = GraphCompression.DecompressGraphData(x.CompressedBytes); var loadedGraph = BlockGraph.LoadGraph(decompressedRaw, x.StoredHash, x.CompressedBytes); if (loadedGraph != null) { AddNewGraph(loadedGraph, x.WalletIdentifierOwner, x.StateGraph, true); } } catch (Exception error) { logger.Error(error); } }); return(true); }