Skip to content

Commit 1713bdd

Browse files
committed
Add 'allow_uncertified_signer_registration' feature to 'mithril-end-to-end'
If activated, it auhorizes the now deprecated signer registration without certification. This feature will be removed soon when this deprecated registration is decommissioned.
1 parent 0eb5531 commit 1713bdd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +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"]
3031
portable = ["mithril-common/portable"]
32+
allow_uncertified_signer_registration = []

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ impl MithrilInfrastructure {
3939

4040
let mut signers: Vec<Signer> = vec![];
4141
for (index, pool_node) in devnet_topology.pool_nodes.iter().enumerate() {
42-
// 50% of signers with key certification
43-
// TODO: Should be removed 100% once the signer certification is fully deployed
44-
let enable_certification = index % 2 == 0;
42+
// 50% of signers with key certification if allow unverified signer registration
43+
// Or 100% of signers otherwise
44+
// TODO: Should be removed once the signer certification is fully deployed
45+
let enable_certification =
46+
index % 2 == 0 || cfg!(not(feature = "allow_uncertified_signer_registration"));
4547
let mut signer = Signer::new(
4648
aggregator.endpoint(),
4749
pool_node,

0 commit comments

Comments
 (0)