@@ -133,8 +133,6 @@ pub struct ContractResharingState {
133133 pub new_participants : ParticipantsConfig ,
134134 pub reshared_keys : ContractKeyset ,
135135 pub key_event : ContractKeyEventInstance ,
136- /// Per-domain threshold updates from the accepted proposal.
137- pub per_domain_thresholds : BTreeMap < dtos:: DomainId , dtos:: ReconstructionThreshold > ,
138136}
139137
140138/// A stripped-down version of the contract state, containing only the state
@@ -233,7 +231,6 @@ impl ContractState {
233231 domains : state. reshared_keys . clone ( ) ,
234232 } ,
235233 key_event,
236- per_domain_thresholds : state. per_domain_thresholds . clone ( ) ,
237234 } ) ;
238235
239236 let running_state = state. previous_running_state . clone ( ) ;
@@ -448,7 +445,7 @@ pub mod test_utils {
448445 use near_mpc_crypto_types:: Keyset ;
449446 use rand:: SeedableRng ;
450447 use rand:: rngs:: StdRng ;
451- use std:: collections:: { BTreeMap , BTreeSet } ;
448+ use std:: collections:: BTreeSet ;
452449
453450 use super :: {
454451 ContractKeyEventInstance , ContractResharingState , ContractRunningState , ContractState ,
@@ -529,7 +526,6 @@ pub mod test_utils {
529526 participants,
530527 resharing_state : Some ( ContractResharingState {
531528 new_participants,
532- per_domain_thresholds : BTreeMap :: new ( ) ,
533529 reshared_keys : Keyset :: new ( EpochId :: new ( epoch) , vec ! [ ] ) ,
534530 key_event : ContractKeyEventInstance {
535531 id : KeyEventId :: new ( EpochId :: new ( epoch) , DomainId ( 0 ) , AttemptId :: new ( ) ) ,
@@ -740,8 +736,8 @@ mod tests {
740736 // When converting the on-chain state into the node's representation.
741737 let state = ContractState :: from_contract_state ( & dto, 0 , None ) . unwrap ( ) ;
742738
743- // Then the resharing key event carries the new threshold, the update is retained,
744- // and the previous registry (old side of the reshare) keeps the old threshold.
739+ // Then the resharing key event carries the new threshold, and the previous
740+ // registry (old side of the reshare) keeps the old threshold.
745741 let ContractState :: Running ( running) = state else {
746742 panic ! ( "resharing maps to a running state with resharing_state populated" ) ;
747743 } ;
@@ -750,10 +746,6 @@ mod tests {
750746 resharing_state. key_event. domain. reconstruction_threshold,
751747 new_threshold
752748 ) ;
753- assert_eq ! (
754- resharing_state. per_domain_thresholds,
755- BTreeMap :: from( [ ( domain_id, new_threshold) ] )
756- ) ;
757749 assert_eq ! (
758750 running
759751 . domains
0 commit comments