Skip to content

Commit c57c993

Browse files
committed
Extend usage of 'allow_skip_signer_certification' feature
Instead of having another 'allow_uncertified_signer_registration' feature, for clarity and simplicity.
1 parent b7547a9 commit c57c993

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

mithril-common/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ mithril-stm = { path = "../mithril-stm", default-features = false, features = ["
5454
slog-scope = "4.4.0"
5555

5656
[features]
57-
default = ["allow_uncertified_signer_registration"]
57+
default = ["allow_skip_signer_certification"]
5858
portable = ["mithril-stm/portable"]
5959
test_only = []
6060
allow_skip_signer_certification = []
61-
allow_uncertified_signer_registration = []
6261

mithril-common/src/crypto_helper/cardano/key_certification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl KeyRegWrapper {
247247
}
248248
pool_id.ok_or(ProtocolRegistrationErrorWrapper::KesSignatureInvalid)?
249249
} else {
250-
if cfg!(not(feature = "allow_uncertified_signer_registration")) {
250+
if cfg!(not(feature = "allow_skip_signer_certification")) {
251251
Err(ProtocolRegistrationErrorWrapper::OpCertMissing)?
252252
}
253253
println!("WARNING: Uncertified signer regsitration by providing a Pool Id is deprecated and will be removed soon! (Pool Id: {:?})", party_id);

mithril-common/src/crypto_helper/tests_setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn setup_signers(
6464
.into_iter()
6565
.map(|party_idx| {
6666
let party_id = if party_idx % 2 == 0
67-
|| cfg!(not(feature = "allow_uncertified_signer_registration"))
67+
|| cfg!(not(feature = "allow_skip_signer_certification"))
6868
{
6969
// 50% of signers with key certification if allow unverified signer registration
7070
// Or 100% of signers otherwise

mithril-test-lab/mithril-end-to-end/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ tokio = { version = "1.17.0", features = ["full"] }
2727
tokio-util = { version = "0.7.1", features = ["codec"] }
2828

2929
[features]
30-
default = ["allow_uncertified_signer_registration"]
30+
default = ["allow_skip_signer_certification"]
3131
portable = ["mithril-common/portable"]
32-
allow_uncertified_signer_registration = []
32+
allow_skip_signer_certification = []

mithril-test-lab/mithril-end-to-end/src/mithril/infrastructure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl MithrilInfrastructure {
4343
// Or 100% of signers otherwise
4444
// TODO: Should be removed once the signer certification is fully deployed
4545
let enable_certification =
46-
index % 2 == 0 || cfg!(not(feature = "allow_uncertified_signer_registration"));
46+
index % 2 == 0 || cfg!(not(feature = "allow_skip_signer_certification"));
4747
let mut signer = Signer::new(
4848
aggregator.endpoint(),
4949
pool_node,

0 commit comments

Comments
 (0)