From 1da786fe83abe2fb167ce22682d2815620ffe547 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Mon, 18 Nov 2024 14:46:45 +0000 Subject: [PATCH] Update Registry post release (#6841) --- backend/canisters/registry/CHANGELOG.md | 2 ++ backend/canisters/registry/impl/src/lib.rs | 3 --- .../canisters/registry/impl/src/lifecycle/post_upgrade.rs | 7 +++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/backend/canisters/registry/CHANGELOG.md b/backend/canisters/registry/CHANGELOG.md index 8f37f3a59d..112f3dc261 100644 --- a/backend/canisters/registry/CHANGELOG.md +++ b/backend/canisters/registry/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.1455](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1455-registry)] - 2024-11-15 + ### Added - Add an error log with http endpoint ([#6608](https://github.com/open-chat-labs/open-chat/pull/6608)) diff --git a/backend/canisters/registry/impl/src/lib.rs b/backend/canisters/registry/impl/src/lib.rs index 026c36d648..28b62b1574 100644 --- a/backend/canisters/registry/impl/src/lib.rs +++ b/backend/canisters/registry/impl/src/lib.rs @@ -78,12 +78,9 @@ struct Data { tokens: Tokens, nervous_systems: NervousSystems, failed_sns_launches: HashSet, - #[serde(default)] swap_providers: Timestamped>, message_filters: MessageFilters, - #[serde(default)] total_supply: Timestamped, - #[serde(default)] circulating_supply: Timestamped, rng_seed: [u8; 32], test_mode: bool, diff --git a/backend/canisters/registry/impl/src/lifecycle/post_upgrade.rs b/backend/canisters/registry/impl/src/lifecycle/post_upgrade.rs index cec59ea172..2b1c02e4ab 100644 --- a/backend/canisters/registry/impl/src/lifecycle/post_upgrade.rs +++ b/backend/canisters/registry/impl/src/lifecycle/post_upgrade.rs @@ -15,11 +15,10 @@ fn post_upgrade(args: Args) { let memory = get_upgrades_memory(); let reader = get_reader(&memory); - let (data, logs, traces): (Data, Vec, Vec) = msgpack::deserialize(reader).unwrap(); + let (data, errors, logs, traces): (Data, Vec, Vec, Vec) = + msgpack::deserialize(reader).unwrap(); - // TODO: After release change this to - // let (data, errors, logs, traces): (Data, Vec, Vec, Vec) = msgpack::deserialize(reader).unwrap(); - canister_logger::init_with_logs(data.test_mode, Vec::new(), logs, traces); + canister_logger::init_with_logs(data.test_mode, errors, logs, traces); let env = init_env(data.rng_seed); init_cycles_dispenser_client(data.cycles_dispenser_canister_id, data.test_mode);