File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
rust/rbac-registration/src/registration/cardano Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -637,14 +637,13 @@ impl RegistrationChainInner {
637637 & self ,
638638 report : & ProblemReport ,
639639 provider : & Provider ,
640- ) -> anyhow:: Result < bool >
640+ ) -> anyhow:: Result < ( ) >
641641 where
642642 Provider : RbacRegistrationProvider ,
643643 {
644644 let roles: Vec < _ > = self . role_data_history . keys ( ) . collect ( ) ;
645645 let catalyst_id = self . catalyst_id . as_short_id ( ) ;
646646
647- let mut result = true ;
648647 for role in roles {
649648 if let Some ( ( key, _) ) = self . get_latest_signing_pk_for_role ( * role) {
650649 if let Some ( previous) = provider. catalyst_id_from_public_key ( key) . await ? {
@@ -653,14 +652,12 @@ impl RegistrationChainInner {
653652 & format ! ( "An update to {catalyst_id} registration chain uses the same public key ({key:?}) as {previous} chain" ) ,
654653 "It isn't allowed to use role 0 signing (certificate subject public) key in different chains" ,
655654 ) ;
656-
657- result = false ;
658655 }
659656 }
660657 }
661658 }
662659
663- Ok ( result )
660+ Ok ( ( ) )
664661 }
665662
666663 /// Get the latest signing public key for a role.
You can’t perform that action at this time.
0 commit comments