Skip to content

Commit

Permalink
Move warning non certified signer
Browse files Browse the repository at this point in the history
Moved to 'StmInitializerWrapper::setup()' to warn earlier in the process.
  • Loading branch information
jpraynaud committed Dec 19, 2022
1 parent b00a5cc commit b83300e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ impl StmInitializerWrapper {
&stm_initializer.verification_key().to_bytes(),
))
} else {
println!("WARNING: Non certified signer registration by providing only a Pool Id is decommissionned and must be used for tests only!");
None
};

Expand Down Expand Up @@ -252,7 +253,6 @@ impl KeyRegWrapper {
if cfg!(not(feature = "allow_skip_signer_certification")) {
Err(ProtocolRegistrationErrorWrapper::OpCertMissing)?
}
println!("WARNING: Uncertified signer registration by providing a Pool Id is decommissionned and must be used for tests only! (Pool Id: {:?})", party_id);
party_id.ok_or(ProtocolRegistrationErrorWrapper::PartyIdMissing)?
};

Expand Down

0 comments on commit b83300e

Please sign in to comment.