We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a6671 commit ee9d211Copy full SHA for ee9d211
cosmwasm/enclaves/shared/block-verifier/src/validator_whitelist.rs
@@ -1,3 +1,4 @@
1
+use std::collections::HashSet;
2
use tendermint_light_client_verifier::types::UntrustedBlockState;
3
4
#[cfg(not(feature = "production"))]
@@ -16,11 +17,11 @@ lazy_static::lazy_static! {
16
17
}
18
19
#[derive(Debug, Clone)]
-struct ValidatorList(pub Vec<String>);
20
+pub struct ValidatorList(pub HashSet<String>);
21
22
impl ValidatorList {
23
fn from_str(list: &str) -> Self {
- let addresses: Vec<String> = list.split(',').map(|s| s.to_string()).collect();
24
+ let addresses: HashSet<String> = list.split(',').map(|s| s.to_string()).collect();
25
Self(addresses)
26
27
0 commit comments