From 398bad143d1935220caf585fc399fc490cc53339 Mon Sep 17 00:00:00 2001 From: Pierugo Pace Date: Wed, 19 Aug 2026 14:45:21 +0000 Subject: [PATCH] chore: `None` transcripts --- rs/consensus/dkg/src/lib.rs | 5 +---- rs/types/types/src/consensus/dkg.rs | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/rs/consensus/dkg/src/lib.rs b/rs/consensus/dkg/src/lib.rs index 45e089324304..1dbb90c71b7f 100644 --- a/rs/consensus/dkg/src/lib.rs +++ b/rs/consensus/dkg/src/lib.rs @@ -995,10 +995,7 @@ mod tests { for dkg_id in summary.dkg.configs.keys() { assert_eq!(dkg_id.target_subnet, NiDkgTargetSubnet::Local); } - assert_eq!( - summary.dkg.transcripts_for_remote_subnets.as_ref(), - Some(&vec![]) - ); + assert_eq!(summary.dkg.transcripts_for_remote_subnets.as_ref(), None); // Verify that the remote_dkg_attempts are set to `Completed`. assert_eq!( summary.dkg.remote_dkg_attempts.get(&target_id), diff --git a/rs/types/types/src/consensus/dkg.rs b/rs/types/types/src/consensus/dkg.rs index a3d62917a0c1..b0bfa590a014 100644 --- a/rs/types/types/src/consensus/dkg.rs +++ b/rs/types/types/src/consensus/dkg.rs @@ -268,7 +268,7 @@ pub struct DkgSummary { #[serde_as(as = "Vec<(_, _)>")] next_transcripts: BTreeMap, /// Transcripts that are computed for remote subnets. - pub transcripts_for_remote_subnets: BackwardsCompatible, true>, + pub transcripts_for_remote_subnets: BackwardsCompatible, false>, /// The length of the current interval in rounds (following the start /// block). pub interval_length: Height, @@ -301,7 +301,7 @@ impl DkgSummary { .collect(), current_transcripts, next_transcripts, - transcripts_for_remote_subnets: BackwardsCompatible::new(vec![]), + transcripts_for_remote_subnets: BackwardsCompatible::empty(), registry_version, interval_length, next_interval_length,